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

Clean up environments that couldn't be scheduled #41

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Conversation

sersorrel
Copy link
Member

After wtsi-hgi/softpack-web#55, nothing will use id, and it's badly-named (or at least underdocumented) and doesn't seem useful, so let's remove it.

Additionally, environments whose build could not be scheduled (the builder wasn't available, or returned an error) are now cleaned up.

Lastly, add a test to prove to ourselves that there's no (or a very low) chance of a race condition when making multiple commits simultaneously. (And even when adding a random delay in the middle of commit_and_push to make a race condition more likely, pygit2 caught the problem and raised an exception.)

@sersorrel sersorrel requested a review from altaf-ali as a code owner February 1, 2024 11:35
@sersorrel sersorrel requested review from mjkw31 and sb10 and removed request for altaf-ali February 1, 2024 11:35
mjkw31
mjkw31 previously approved these changes Feb 1, 2024
Copy link
Contributor

@mjkw31 mjkw31 left a comment

Choose a reason for hiding this comment

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

LGTM.

Fixes:

Ign:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap2-dev amd64 2.4.49+dfsg-2ubuntu1.9
Ign:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap2-dev amd64 2.4.49+dfsg-2ubuntu1.9
Ign:10 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libldap2-dev amd64 2.4.49+dfsg-2ubuntu1.9
Err:10 mirror+file:/etc/apt/apt-mirrors.txt focal-updates/main amd64 libldap2-dev amd64 2.4.49+dfsg-2ubuntu1.9
  404  Not Found [IP: 52.252.163.49 80]
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/o/openldap/libldap2-dev_2.4.49+dfsg-2ubuntu1.9_amd64.deb  404  Not Found [IP: 52.252.163.49 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (366e148) 65.31% compared to head (7c453ce) 65.19%.

Files Patch % Lines
softpack_core/schemas/environment.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #41      +/-   ##
===========================================
- Coverage    65.31%   65.19%   -0.13%     
===========================================
  Files           17       17              
  Lines          816      813       -3     
  Branches       139      139              
===========================================
- Hits           533      530       -3     
  Misses         276      276              
  Partials         7        7              

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

@sb10 sb10 merged commit ff0dde7 into develop Feb 1, 2024
3 of 5 checks passed
@sb10 sb10 deleted the ash-2024-02-01 branch February 1, 2024 11:53
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.

3 participants