-
Notifications
You must be signed in to change notification settings - Fork 9
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
App container is calculating an incorrect version number from tag #2389
Labels
bug
Something isn't working
Comments
A follow-up to this one will be to update old event data going into Metabase to correct the version numbers.
Note the events above are just successful enrollments, so there are likely many more events with incorrect version numbers. |
Ah right, we have a multi-stage build there, exactly for this reason... 🤕 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
In Release
2024.07.2
we went to a tag-based deployment model. See #1527 / #2213 for more context.Our most recent Release was for
2024.09.2
.I was looking at enrollment data, and noticed that ever since that
2024.07.2
release, our version numbers have been calculating incorrectly at runtime:2024.6.1
2024.6.1
2024.7.1
2024.7.1
2024.7.1
2024.7.1
2024.7.3.dev0+gcd3b083.d20240731
2024.7.2
2024.7.3.dev0+gcd3b083.d20240731
2024.7.2
2024.7.3.dev0+gcd3b083.d20240731
2024.7.2
2024.7.3.dev0+gcd3b083.d20240731
2024.7.2
2024.7.3.dev0+gcd3b083.d20240731
2024.7.2
2024.8.2.dev0+g7664917.d20240821
2024.8.1
2024.8.2.dev0+g7664917.d20240821
2024.8.1
2024.8.2.dev0+g7664917.d20240821
2024.8.1
2024.8.2.dev0+g7664917.d20240821
2024.8.1
2024.9.2.dev0+gadf41b9.d20240909
2024.9.1
2024.9.2.dev0+gadf41b9.d20240909
2024.9.1
To Reproduce
Steps to reproduce the behavior:
git checkout 2024.09.2
docker compose build --no-cache client
to rebuild the client (prod app)docker compose up -d client
to bring the client up in the backgrounddocker compose exec -ti client /bin/bash
to enter the running containerpython manage.py shell
to enter a Django shell with settings loadedimport benefits; print(benefits.VERSION)
💥exit()
to exit the shellgit status
💥Expected behavior
In the above example, we should have seen
2024.09.2
printed to the screen, and no pendinggit
changes.Screenshots
Additional context
Can we just delete the
.git
folder from the app container? I don't see why that would be needed once thebenefits
package is installed.How do we handle this in
eligibility-server
? Is the version number correct over there?The text was updated successfully, but these errors were encountered: