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

Previews fail in 3.7% of cases when first 7 chars of sha are all numeric #3691

Closed
corneliusroemer opened this issue Feb 14, 2025 · 5 comments · Fixed by #3692
Closed

Previews fail in 3.7% of cases when first 7 chars of sha are all numeric #3691

corneliusroemer opened this issue Feb 14, 2025 · 5 comments · Fixed by #3692
Labels
bug Something isn't working

Comments

@corneliusroemer
Copy link
Contributor

Apparently our previews don't work when the first 7 chars of a sha are all numeric:

Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = helm template . --name-template pp-try-leak-fix-3690 --namespace prev-try-leak-fix --kube-version 1.30 --set shortbranch=try-leak-fix --set sha=5486252 --set branch=try-leak-fix --set host=try-leak-fix.loculus.org --values <path to cached source>/kubernetes/loculus/values.yaml --values <path to cached source>/kubernetes/loculus/values_preview_server.yaml <api versions removed> --include-crds failed exit status 1: Error: values don't meet the specifications of the schema(s) in the following chart(s): loculus: - sha: Invalid type. Expected: string, given: integer

Image

The probability of hitting such a sha is (10/16)^7 ~ 3.7%

@corneliusroemer
Copy link
Contributor Author

Seems to be a bug in #3588 @fhennig

@corneliusroemer corneliusroemer added the bug Something isn't working label Feb 14, 2025
@theosanderson
Copy link
Member

huh if this is still manifesting then https://github.com/loculus-project/loculus_toplevel_gitops/pull/2 didn't work

@corneliusroemer
Copy link
Contributor Author

corneliusroemer commented Feb 14, 2025

Yeah, hasn't applied yet: https://argocd.loculus.org/applications/argocd/top-level-git-ops?view=tree&resource=&node=argoproj.io%2FApplicationSet%2Fargocd%2Fpp-preview%2F0

Image

It's not necessarily a bad idea to find out if the schema fails for previews

@theosanderson
Copy link
Member

@theosanderson
Copy link
Member

It's not necessarily a bad idea to find out if the schema fails for previews

See #3684 - we have specific CI to tell us if the schema is problematic. It's nice to be able to prototype a feature and have a preview without adjusting the schema for every change.

But, yes, we can't do this til we next update argocd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants