paketo-community / ubi-base-stack

Apache License 2.0
2 stars 5 forks source link

Polling ubi images - fixing edge case where sha files are not present #18

Closed pacostas closed 11 months ago

pacostas commented 11 months ago

Summary

In case of there are no sha files, as for example on the current release, the action tries to read a file that does not exists and as a result throws an error. This PR adds a check if the file exists before reading it. In case the file does not exist, sets the value of the sha variable to an empty string in order to be updated on the next steps

Use Cases

Checklist

pacostas commented 11 months ago

@sophiewigmore This error (on the acceptance tests) did also happen once in my remote repo. I'm not able to reproduce it locally, seems like it has to do with the availability of the server.

sophiewigmore commented 11 months ago

thanks for the fix! and yea, the tests have been failing across all of our paketo stack repos.. not sure what's up. I'll investigate the fix for the test

sophiewigmore commented 11 months ago

I think it might have to do with the recent jam release but I'm testing that theory now.