mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Testing version differ from latest commit in diagnostic admin panel #1819
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danielphan2003 on GitHub (Jan 6, 2024).
Originally assigned to: @BlackDex on GitHub.
Subject of the issue
The diagnostic page is showing an update from
latestcommit (ae3a153bdb), but this commit doesn't actually cause the CI to build a new testing image that I could update to.I think the diagnostic panel is checking the latest git commit, instead of the latest CI build that is available.
Deployment environment
Steps to reproduce
Use the testing build.
Expected behaviour
Diagnostic page should show there is no update available.
Actual behaviour
There seems to be an update as indicated on the page, but there is actually none.
Troubleshooting data
@stefan0xC commented on GitHub (Jan 6, 2024):
That is indeed what is done:
ae3a153bdb/src/api/admin.rs (L620-L624)The question to me would be if we should fix this (which would probably not be trivial) or if this discrepancy is an acceptable shortcoming we can dismiss because it's not that big of an issue which will occasionally come up if the latest commit did not trigger a release
ae3a153bdb/.github/workflows/release.yml (L5-L16)Personally I think it's not worth the effort (but I have not looked into the GitHub API if there's an easy way to check for the commit of just the latest completed Release workflow).
@BlackDex commented on GitHub (Feb 2, 2024):
I did some checking. And it isn't possible to extract the last build version via an API call.
Also tried to check the packages if i could use that, but that is also not an option.
Only option i can think of is by using the artifacts maybe.
We could add an extra artifact with every release workflow like a file called testing or something.
That is easy to filter since the API even has a
?name=testingoption. We can then use that response to get the latest build hash.That might be an option.
I Was planning on doing some (larger) updates on the admin interface.
Ill see if i can take this into account to make it more robust.
And, to be on the safe side, i will use the current way as a fallback probably, in case the artifacts are not there anymore for some reason
@dani-garcia commented on GitHub (Feb 2, 2024):
Could we just rebuild the images all the time, even if the changes are only to the readme? I can't imagine those kinds of non-source code changes happen very often anyway, so it's not like we're saving a lot of build time.
@BlackDex commented on GitHub (Feb 2, 2024):
We could i think. That is an option also.
Currently it only triggers on:
But, if someone updates the resources or tools directory for example, it will also build.
That does, indeed, not happen that often. And might not be a big issue.
One added benefit would be that the image will be updated without any actual change to the code, but maybe with some base images updates hehe.
@BlackDex commented on GitHub (Feb 2, 2024):
Ill fix that right away. That is very easy to do :)
@BlackDex commented on GitHub (Feb 3, 2024):
Done via #4309