Skip to content

Conversation

Hook25
Copy link
Collaborator

@Hook25 Hook25 commented Jul 14, 2025

Description

The strategy of trying to infer what packages are to be copied has two disadvantages:

  • Doens't copy non-checkbox packages
  • Doens't work if we pass validation the day the series is disabled (race condition, we may build the package and fail once we try to copy it)

This leads to partial beta releases, like the one we just had. This fixes the issue by simply skipping the copy actions that fails with the error that the target build is outdated.

Resolved issues

Fixes: https://warthogs.atlassian.net/browse/CHECKBOX-1977

Documentation

N/A

Tests

Updated the tests and fixed the current release with this fix

@codecov
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.04%. Comparing base (56dcd35) to head (e7671e1).
⚠️ Report is 100 commits behind head on main.

Files with missing lines Patch % Lines
tools/release/lp_copy_packages.py 81.81% 1 Missing and 1 partial ⚠️
tools/release/lp_update_recipe.py 88.23% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2017      +/-   ##
==========================================
+ Coverage   51.03%   51.04%   +0.01%     
==========================================
  Files         385      385              
  Lines       41507    41524      +17     
  Branches     7712     7716       +4     
==========================================
+ Hits        21184    21197      +13     
- Misses      19563    19564       +1     
- Partials      760      763       +3     
Flag Coverage Δ
release-tools 81.06% <85.71%> (-0.21%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@fernando79513 fernando79513 left a comment

Choose a reason for hiding this comment

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

I guessed there could be a race condition, though I didn't guess the exact reason, XD.

I like this approach better. There is just one small comment. Since now we are copying all the packages (not only the checkbox ones), there could be a chance that we remove a package from the source PPA, and it will remain in the destination PPA, forever.

I don't think this is a big issue, but it would be great to include a comparison of the packages in the source PPA and the destination PPA for debugging purposes, as we have the output of the packages we have successfully copied.

@Hook25 Hook25 force-pushed the better_copy_package branch from 816c69f to e7671e1 Compare July 14, 2025 12:25
@Hook25
Copy link
Collaborator Author

Hook25 commented Jul 14, 2025

I've updated the code to also check if version are outdate and remove them from the desired list. AFAIK you can't remove packages from a PPA, so I'm not sure your comment applies. Still, we've never done something like that, I don't think it applies here

@fernando79513
Copy link
Collaborator

It seems it is possible to remove packages from a PPA:
image
But as I said, it is not a major issue. If we decide to get rid of a deprecated package for any reason, we could do it manually.

Copy link
Collaborator

@fernando79513 fernando79513 left a comment

Choose a reason for hiding this comment

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

LGTM+1!

@Hook25 Hook25 merged commit 49c29a5 into main Jul 15, 2025
14 of 15 checks passed
@Hook25 Hook25 deleted the better_copy_package branch July 15, 2025 07:59
@Hook25
Copy link
Collaborator Author

Hook25 commented Jul 15, 2025

ngl, I'm unsure about what that button does and how to get to it regularly (when copies didn't fail).

mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
)

* Copy all packages and catch those that couldn't be copied

* Something is wrong in my black sigh

* Check that we aren't setting the recepie to buidl for outadted
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
)

* Copy all packages and catch those that couldn't be copied

* Something is wrong in my black sigh

* Check that we aren't setting the recepie to buidl for outadted
bladernr pushed a commit that referenced this pull request Aug 28, 2025
)

* Copy all packages and catch those that couldn't be copied

* Something is wrong in my black sigh

* Check that we aren't setting the recepie to buidl for outadted
stanley31huang pushed a commit that referenced this pull request Oct 3, 2025
)

* Copy all packages and catch those that couldn't be copied

* Something is wrong in my black sigh

* Check that we aren't setting the recepie to buidl for outadted
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