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

Receipt files should be named deterministicly #620

Open
erichaagdev opened this issue May 20, 2024 · 1 comment
Open

Receipt files should be named deterministicly #620

erichaagdev opened this issue May 20, 2024 · 1 comment

Comments

@erichaagdev
Copy link
Member

Currently, experiment receipt files are named <short_experiment_name>-<buld_tool>-<timestamp>.receipt.

I see little value in having such an elaborate naming scheme and it makes automation scenarios slightly more challenging.

Instead, the receipt files should be named consistently across all experiments and build tools, like experiment.receipt.

This would make finding the receipt file much easier. For example:

cat .data/01-validate-incremental-building/latest/experiment.receipt

Would always print the receipt for the most recent invocation of experiment 1.

If #619 were implemented, then:

cat .data/latest/experiment.receipt

Would always get you the receipt of the most recent invocation across all experiments.

@erichaagdev
Copy link
Member Author

As a workaround, you can use * to get the receipt. For example::

cat .data/01-validate-incremental-building/latest/*.receipt

This will print the receipt for the most recent invocation of experiment 1.

This is the approach taken by the composite actions:

https://github.com/gradle/gradle-enterprise-build-validation-scripts/blob/507feefc46bd116db189e54b34d96b5793494e66/.github/actions/gradle/experiment-1/action.yml#L101

While a simple workaround, it may not be obvious to everyone.

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

No branches or pull requests

1 participant