Skip to content

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