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

Fail early when attempting to clone a job with missing assets #5383

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Dec 1, 2023

  • Do the same check for assets we already do before restarting a job also before cloning * This is necessary because assets that do not exist anymore are not returned by the job API anymore at all. Thus the clone script would not even attempt to download them and also not fail early. (The error about the missing asset would only occur when trying to run the job.)
  • Do not fail on missing assets that are created by a parent job (when that parent job is cloned as well)
  • Allow to proceed via --ignore-missing-assets as it is already possible for download errors that happen on the fly
  • See https://progress.opensuse.org/issues/151522

* Do the same check for assets we already do before restarting a job also
  before cloning
    * This is necessary because assets that do not exist anymore are not
      returned by the job API anymore at all. Thus the clone script would
      not even attempt to download them and also not fail early. (The error
      about the missing asset would only occur when trying to run the job.)
* Do not fail on missing assets that are created by a parent job (when that
  parent job is cloned as well)
* Allow to proceed via `--ignore-missing-assets` as it is already possible
  for download errors that happen on the fly
* See https://progress.opensuse.org/issues/151522
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5fc4511) 98.36% compared to head (6fa5591) 98.36%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5383   +/-   ##
=======================================
  Coverage   98.36%   98.36%           
=======================================
  Files         389      389           
  Lines       37454    37488   +34     
=======================================
+ Hits        36840    36874   +34     
  Misses        614      614           

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

@mergify mergify bot merged commit 83dffeb into os-autoinst:master Dec 6, 2023
13 checks passed
@Martchus Martchus deleted the missing-assets branch December 6, 2023 10:17
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