Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

bracevac
Copy link
Contributor

Changes to the capture checker should automatically trigger the scala2 library test.

I'm using this draft PR to test the triggers.

Changes to the capture checker should automatically trigger
the scala2 library test.
@bracevac bracevac requested a review from hamzaremmal November 29, 2024 15:32
&& ( 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/')
)
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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 😢

@bracevac bracevac closed this Nov 30, 2024
hamzaremmal added a commit that referenced this pull request Dec 2, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants