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

Only generate backwards-compatible output when necessary #52

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

evanweible-wf
Copy link
Contributor

In v3, we moved the output of the browser-aggregation test config from test/dart_test.browser_aggregate.yaml to dart_test.browser_aggregate.yaml (in the root). For backwards-compatibility, we continued to output to the deprecated location, too. Most consumers should already be including the dart_test.browser_aggregate.yaml in the root instead of the copy from the test/ directory, but if they aren't, it should be trivial to detect by reading dart_test.yaml where it would need to be included.

This PR makes that change: when test/dart_test.browser_aggregate.yaml is found in dart_test.yaml, the builder will output that file. Otherwise, it will not, and only the root dart_test.browser_aggregate.yaml will be generated.

todbachman-wf
todbachman-wf previously approved these changes Nov 7, 2024
@evanweible-wf
Copy link
Contributor Author

The example tests are timing out on stable and beta because the dart run build_runner test process is not exiting even though the child test process has exited.. not sure why. I opened an issue here: dart-lang/build#3770

@evanweible-wf evanweible-wf force-pushed the smart-output-of-backwards-compat-file branch from 6ccd870 to 3e4e1be Compare November 13, 2024 17:59
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