-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to an environment variable for enabling Oracle tests. #9511
Conversation
@@ -60,4 +57,4 @@ da_scala_test( | |||
"//libs-scala/oracle-testing", | |||
"//libs-scala/ports", | |||
], | |||
) | |||
) if oracle_testing else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we instead set it to manual
? testing that it builds still seems useful.
) | ||
|
||
da_scala_test_suite( | ||
# The "manual" test tag doesn't seem to work with `da_scala_test_suite`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m confused. You switched from da_scala_test_suite
but then you’re still not using manual
. Can we do one or the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that was my original plan and then I switched it. I'll put it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d prefer the manual option and fixing da_scala_test_suite
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did try to fix da_scala_test_suite
but I can't find the problem. Can you see one?
I think it might be an issue in scala_test_suite
, but I can't be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to manual execution with the tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, I thought it might not pass the tag along but doesn’t seem to be it. Fine to leave it out of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the implementation of scala_test_suite
, it does forward kwargs
to the individual scala_test
targets, but it doesn't forward any tags to the final test_suite
target. So, the final test_suite
target will still be non-manual. I'd say that's a bug in rules_scala.
@@ -239,19 +240,16 @@ da_scala_test_suite( | |||
deps = test_deps, | |||
) | |||
|
|||
da_scala_test_suite( | |||
# The "manual" test tag doesn't seem to work with `da_scala_test_suite`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -239,14 +240,12 @@ da_scala_test_suite( | |||
deps = test_deps, | |||
) | |||
|
|||
da_scala_test_suite( | |||
# The "manual" test tag doesn't seem to work with `da_scala_test_suite`. | |||
da_scala_test( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a bunch of unused deps here. Not caused by your PR but da_scala_test_suite
(deliberately) disables unused dep checks so now it blows up. Should be able to just kill them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, missed those somehow. I purged the ones in participant-integration-api.
Not sure how bazel build //...
didn't catch that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems I needed to run DAML_ORACLE_TESTING=true bazel build //...
, even with the change to the manual tags. I guess they don't get built otherwise.
This PR has been created by a script, which is not very smart and does not have all the context. Please do double-check that the version prefix is correct before merging. @nickchapman-da is in charge of this release. Commit log: ``` e1e878a Simplify opt-in/out of Oracle when building (#9515) d761853 KVL-874 Add unit tests for Telemetry (#9500) c567680 Support rollback nodes in PostCommitValidation (#9501) a335ee8 Support rollback nodes in KeyValueCommitting.submissionOutputs (#9512) 8747b3d Support rollback nodes in TransactionIndexing (#9506) c4cf3c9 kvutils: Log a missing input state warning without the stack trace. (#9513) 4e712a0 add oracle option for json-api perf runner (#9492) 8cd3658 Switch to an environment variable for enabling Oracle tests. (#9511) e39c20e update GPG public key (#9488) 782109d update LATEST (#9508) 3e66611 Nest stakeholders in contracts table as JSON arrays (#9484) aecdc2a update NOTICES file (#9507) ``` Changelog: ``` - [JSON-API Perf] ``--query-store-index=postgres`` must be passed to select PostgreSQL query store performance testing; ``true`` and ``yes`` are no longer supported. See `issue #9492 <https://github.com/digital-asset/daml/pull/9492>`__. ``` CHANGELOG_BEGIN CHANGELOG_END
This allows developers who don't have access to Oracle to build the tests.
It also stops IntelliJ from complaining that the targets don't exist.
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.