-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[CI] trigger library tests on cc changes #22055
Conversation
Changes to the capture checker should automatically trigger the scala2 library test.
&& ( contains(github.event.pull_request.changed_files, 'scala2-library-cc/') | ||
|| contains(github.event.pull_request.changed_files, 'scala2-library-cc-tasty/') | ||
|| contains(github.event.pull_request.changed_files, 'compiler/src/dotty/tools/dotc/cc/') | ||
) |
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.
We should also include capture test folders.
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 was thinking about this, but why would that be necessary? I don't see how changing the capture tests could affect the outcome of the standard library tests.
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.
To make sure the modified/added test has the same behaviour/output with the two versions of stdlib.
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.
PS: Speaking of capture tests: they are spread out throughout the tests folder, according to grep -nHr captureChecking ./tests
. Should we put them under a central folder? @odersky
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.
PPS: Those specific lines in the yaml file do not appear to work as intended. ChatGPT lied to me 😢
Superseeds #22055 When working on capture checking, error messages might change if we compile using the cc library or the non-cc library. Usually, this errors are not catched when running the workflows on each PR and are only detected on nightly builds. The following PR introduces a new workflow that is trigger on each merge to main and on each change to cc related files.
Changes to the capture checker should automatically trigger the scala2 library test.
I'm using this draft PR to test the triggers.