run --output-dir groups files by timestamp#153
Open
chlowell wants to merge 2 commits intomicrosoft:mainfrom
Open
run --output-dir groups files by timestamp#153chlowell wants to merge 2 commits intomicrosoft:mainfrom
run --output-dir groups files by timestamp#153chlowell wants to merge 2 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates waza run --output-dir to avoid overwriting prior runs by writing artifacts into a per-run timestamped subdirectory, and adjusts docs/tests accordingly.
Changes:
- Write structured output to
{outputDir}/{timestamp}/...instead of directly under{outputDir}. - Add testable
writeOutputDirAt(..., now time.Time)and update tests to validate timestamped layout and non-collision behavior. - Document the new
--output-dirbehavior and mutual exclusivity with--output.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| site/src/content/docs/reference/cli.mdx | Documents timestamped subdirectory behavior for --output-dir. |
| cmd/waza/cmd_run_test.go | Updates output-dir tests to validate new directory structure and repeat-run separation via fixed timestamps. |
| cmd/waza/cmd_run.go | Implements timestamped run directory via writeOutputDirAt and updates flag help + comments. |
| README.md | Documents timestamped --output-dir output layout and exclusivity with --output. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #153 +/- ##
=======================================
Coverage ? 73.53%
=======================================
Files ? 141
Lines ? 15861
Branches ? 0
=======================================
Hits ? 11663
Misses ? 3351
Partials ? 847
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Today,
waza run --output-dir foowrites files likefoo/model.jsonthat subsequent runs with the same arguments overwrite. With this PR,run --output-dir fooinstead writes files likefoo/<timestamp>/model.json. The timestamp has millisecond precision, so it's still possible in principle for one run to overwrite another's results, however I doubt this matters in practice given our expected usage patterns.