Skip to content

Fix pending binary builds (infra)#897

Merged
Hook25 merged 4 commits intomainfrom
fix_pending_binary_builds_release
Dec 14, 2023
Merged

Fix pending binary builds (infra)#897
Hook25 merged 4 commits intomainfrom
fix_pending_binary_builds_release

Conversation

@Hook25
Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 commented Dec 14, 2023

Description

This run of daily builds failed because the date_first_dispatched attribute of a build is filled only once it is actually started, therefore if a build is pending it will be None. This fixes this issue and adds a sanity check on the build status (currently we can not determine how that field is filled for pending builds AND we want to resist/know spurious values in there so that we can proactively fix the script if they come up).

Resolved issues

This build fail

Documentation

This explains why the None case is included in the selector in a comment both in the function and in the test

Tests

The new value is now included in the function test.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1ffe031) 36.54% compared to head (9b1ae5c) 36.55%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #897   +/-   ##
=======================================
  Coverage   36.54%   36.55%           
=======================================
  Files         310      310           
  Lines       34634    34639    +5     
  Branches     5964     5965    +1     
=======================================
+ Hits        12656    12661    +5     
  Misses      21408    21408           
  Partials      570      570           
Flag Coverage Δ
release-tools 72.79% <100.00%> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

kissiel
kissiel previously approved these changes Dec 14, 2023
Copy link
Copy Markdown
Contributor

@kissiel kissiel left a comment

Choose a reason for hiding this comment

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

Awesome, +1

Copy link
Copy Markdown
Contributor

@kissiel kissiel left a comment

Choose a reason for hiding this comment

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

still awesome

@Hook25 Hook25 merged commit 88b54ea into main Dec 14, 2023
@Hook25 Hook25 deleted the fix_pending_binary_builds_release branch December 14, 2023 14:07
LiaoU3 pushed a commit to LiaoU3/checkbox that referenced this pull request Jan 9, 2024
* Fix pending binary builds

* Rolled back comment update

* New test for unknown buildstatus

* Motivate time sleep everywhere
binli pushed a commit to binli/checkbox that referenced this pull request Mar 22, 2024
* Fix pending binary builds

* Rolled back comment update

* New test for unknown buildstatus

* Motivate time sleep everywhere
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