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

Save firstTime this build was attempted in past-jobs.json #100

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

yosifkit
Copy link
Member

just some extra data so we can see what time this started failing without having to calculate based on skips, count, and assuming the job ran every hour.

I meant to include this in #91, but it got lost in the refactors.

Also drop temporary migration of pastFailedJobs.json since it isn't necessary anymore.

@yosifkit yosifkit requested a review from tianon as a code owner December 10, 2024 00:35
Comment on lines 211 to 212
# save firstTime if it isn't set yet
map_values(.firstTime //= .lastTime) * ( env.buildCompletionDataJson | fromjson )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't have ' because we're inside ' 😄 also if we split this up the diff is slightly better and it's slightly more obvious that we're adding data and munging data since they're separate

Suggested change
# save firstTime if it isn't set yet
map_values(.firstTime //= .lastTime) * ( env.buildCompletionDataJson | fromjson )
. * ( env.buildCompletionDataJson | fromjson )
# save firstTime if it is not set yet
| map_values(.firstTime //= .lastTime)

just some extra data so we can see what time this started failing without having to calculate based on skips, count, and assuming the job ran every hour
@tianon tianon merged commit 72e2f8f into docker-library:main Dec 10, 2024
1 check passed
@tianon tianon deleted the firstTime branch December 10, 2024 00:47
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