-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make helm chart job only run if container is built ok #667
Make helm chart job only run if container is built ok #667
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #667 +/- ##
=======================================
Coverage 92.35% 92.35%
=======================================
Files 35 35
Lines 1793 1793
=======================================
Hits 1656 1656
Misses 137 137 ☔ View full report in Codecov by Sentry. |
that is the culprit - might need to solve both issues in one go for this to pass |
Please give this PR a sensible title |
62b1bb7
to
dc0709f
Compare
.github/workflows/_container.yml
Outdated
- name: Validate PEP 440 version compliance | ||
run: | | ||
ref="${{ github.ref_name }}" | ||
my_regex=${{env.PEP_440_REGEX}} | ||
if [[ "$ref" =~ $my_regex ]]; then | ||
echo "PEP 440 compliant version: $ref" | ||
else | ||
echo "Invalid PEP 440 version: $ref" | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes seem unrelated, why are they required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise it rans into #411 , so this PR fixes both,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't fix #411 because if the user makes a release with a wrongly-formatted tag, the release will still appear in Github and PyPi(https://pypi.org/project/blueapi/#history). I don't think there's any harm in checking here, although it would be redundant if we could do something like this.
However, PEP440 actually allows for a wider range of error messages than helm (for instance, it allows 1.1a1
where helm would require 1.1-a1
) so this check and error message aren't quite right. See https://helm.sh/docs/chart_best_practices/conventions/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well we convert to semver later ( - name: Convert PEP 440 version to SemVer) , is that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be okay with removing the PEP440 check entirely and making a separate issue for adding SemVer check. I would not be okay with leaving the PEP440 check in since it won't catch any useful errors reported in #411.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not semver check in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would also be acceptable. It's only the PEP 440 check that I won't approve.
8cfdd2d
to
036220a
Compare
.github/workflows/_container.yml
Outdated
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: install | ||
|
||
- name: login to acr using helm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: login to acr using helm | |
- name: login to gcr using helm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
ef2ad15
to
58a32bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…rsing (#715) Fixes #667 --------- Co-authored-by: Joseph Ware <[email protected]>
Fixes #136