RegistrarConsoleScreenshotTest error

47 views
Skip to first unread message

Sivasubramanian M

unread,
Mar 3, 2024, 5:47:47 PM3/3/24
to nomulus-discuss
If someone could offer a solution to this build error it would be helpful.

https://github.com/google/nomulus/issues/2345

Thank you.

Sivasubramanian M

unread,
Mar 4, 2024, 8:06:56 AM3/4/24
to nomulus-discuss
Resolved.  The errors were probably due to some Cloud set up steps missed.  

BUILD

Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/git
Step #1: Cloning into '......'...
Step #1: Warning: Permanently added the RSA host key for IP address 'xx.x.x.x' to the list of known hosts.
Finished Step #1
PUSH
DONE
ID                                    CREATE_TIME                DURATION  SOURCE                                                                                              IMAGES  STATUS
059...        2024-03-04T12:57:50+00:00  3M22S     gs://cloudname_cloudbuild/source/170xxx.936439-02d9dd75ede54236a6b5bca406b912de.tgz  -       SUCCESS

Lai Jiang

unread,
Mar 4, 2024, 9:45:29 AM3/4/24
to Sivasubramanian M, nomulus-discuss
FWIW the console is deprecated. We've seen sporadic test timeouts in the past as well. I would recommend just disabling the tests if they give you problems in the future. The new console is located at console-webapp and we will probably delete the code for the old console at some point in the future when the new console reaches feature parity.

Lai Jiang | Software Engineer | jian...@google.com | 212-565-6361



--
NOTE: This is a public discussion list for the Nomulus domain registry project.
---
You received this message because you are subscribed to the Google Groups "nomulus-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomulus-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomulus-discuss/76ea3def-8fe6-4c92-b9b4-47e21d3093e0n%40googlegroups.com.

Sivasubramanian M

unread,
Mar 4, 2024, 10:13:20 AM3/4/24
to Lai Jiang, nomulus-discuss
Thank you. Would be helpful if you could give me the build command with the parameter to disable tests. 

Thank you 

Lai Jiang

unread,
Mar 4, 2024, 10:23:46 AM3/4/24
to Sivasubramanian M, nomulus-discuss


Lai Jiang | Software Engineer | jian...@google.com | 212-565-6361


Sivasubramanian M

unread,
Mar 4, 2024, 10:45:09 AM3/4/24
to Lai Jiang, nomulus-discuss
From line 895 I omitted ./gradlew and appended the rest of the parameters to the build command as "sudo ./nom_build build test -P testFilter=*.FooBar,google.registry.tools.ShellCommandTest",   it skipped the tests at 52%, progressed to complete the build, but towards 100% completion, there was a problem with util tests (which weren't probably skipped by the testFilter).  Here are the present errors:

> Task :util:test

DateTimeUtilsTest > testSuccess_toLocalDate() FAILED
    com.google.common.truth.ComparisonFailureWithFacts at DateTimeUtilsTest.java:108

163 tests completed, 1 failed

> Task :util:test FAILED

> Task :reportUploader
ReportUploader: destination= ''
ReportUploader: no destination given, skipping...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':util:test'.
> There were failing tests. See the report at: file:///home/s/workingdir/nameshop/util/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4m 43s
135 actionable tasks: 63 executed, 72 up-to-date

Sivasubramanian M


Lai Jiang

unread,
Mar 4, 2024, 10:50:33 AM3/4/24
to Sivasubramanian M, nomulus-discuss
The line referenced was just an example on how to use the `--testFilter` flag. You'd need to replace the arguments with the test class/methods you would like to filter out.

For this particular error, check the test report and see what the actual problem is.


Lai Jiang | Software Engineer | jian...@google.com | 212-565-6361


Sivasubramanian M

unread,
Mar 4, 2024, 10:54:15 AM3/4/24
to Lai Jiang, nomulus-discuss
Dear Lai Jiang

Thank you.  You have precisely pointed out what needs to be done, but I don't have the very basic programming knowledge beyond copying and pasting code in a terminal, it would be very very helpful if you could write down the build command with the flag that will prohibit initial tests and also the util tests. 

Sivasubramanian M


Lai Jiang

unread,
Mar 4, 2024, 11:03:20 AM3/4/24
to Sivasubramanian M, nomulus-discuss
If you just want to build the project without running any test, you can run `./gradlew build -x test` in the root folder.


Lai Jiang | Software Engineer | jian...@google.com | 212-565-6361


Sivasubramanian M

unread,
Mar 4, 2024, 11:21:30 AM3/4/24
to Lai Jiang, nomulus-discuss
BUILD SUCCESSFUL in 38s
116 actionable tasks: 17 executed, 99 up-to-date


Thank you :)
Sivasubramanian M


Sivasubramanian M

unread,
Mar 5, 2024, 3:11:38 PM3/5/24
to nomulus-discuss

After the successful build the deployment did not succeed, though I could launch the  [myappname].alpha.appspot.com/registrar webpage, but it loaded as a security warning page, not sure if the backend of this webpage was correctly installed. Screenshot attached.

Went through the steps all over again, Nomulus git has a new release in zip format uploaded 9 hours ago, https://github.com/google/nomulus/releases/tag/nomulus-20240305-RC00  downloaded the zip file, unzipped and built it, 

The build was WITHOUT errors. https://scans.gradle.com/s/cwfj4ossjov76   The deployment didn't go well

* What went wrong:
Execution failed for task ':services:default:appengineDeploy'.
> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: Non zero exit: 1

(Other issues may relate to configuration instructions pertaining to dispatch.yaml etc.  from page https://cloud.google.com/appengine/docs/legacy/standard/java/configuration-files when I tried gcloud app deploy dispatch.yaml, it returns erros such as 

(gcloud.app.deploy) INVALID_ARGUMENT: The request contained an invalid argument.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: Service 'pubapi' does not exist.
    field: dispatch_rules
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: Service 'pubapi' does not exist.
    field: dispatch_rules
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: Service 'pubapi' does not exist.
    field: dispatch_rules
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: Service 'pubapi' does not exist.
    field: dispatch_rules )

Lai Jiang was kind enough to look at all this and advised that I need to create the services on App Engine first before you can deploy to them.  

Thank you.





nomulusappfrontpageerror.png
Reply all
Reply to author
Forward
0 new messages