Repository navigation
fix: dashboard reports the real plugin version - #76
Merged
Merged
Conversation
Hermes' dashboard reads the version from dashboard/manifest.json, not plugin.yaml. The 3.0.0 and 3.1.0 release PRs bumped plugin.yaml and PLUGIN_VERSION but left the dashboard manifest at 2.8.0, so hosts running 3.1.0 showed 2.8.0 and looked like the update never installed. Set it to 3.1.0, add a test that keeps it in step with plugin.yaml, make the Release workflow refuse to publish when they disagree, and list it in the release checklist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
Hermes' dashboard reads a plugin's version from
dashboard/manifest.json, notplugin.yaml. The 3.0.0 (#70) and 3.1.0 (#75) release PRs bumpedplugin.yamlandPLUGIN_VERSIONbut left the dashboard manifest at2.8.0. So a host that installed 3.1.0 still showed 2.8.0 in the dashboard, and it looked like the update never went in. I saw this on the Azure demo host: the checkout was on 3.1.0 (93aeee7) and the dashboard had restarted after the install, but it still showed 2.8.0.What changed
dashboard/manifest.json: version is now3.1.0, matchingplugin.yaml. It's a correction to match the current release, not a version bump.tests/test_portability.py: new test that fails when the dashboard manifest version differs fromplugin.yaml.scripts/publish_release.py: the Release workflow won't publish when the two disagree, so a release can't ship with a stale dashboard version again.AGENTS.md: the release checklist now listsdashboard/manifest.jsonwithplugin.yamlandPLUGIN_VERSION.Tests
Run locally against Hermes v0.21.5 (a9a54245), using the CI
PYTHONPATHlayout:test_portability.py: 4 passed. The new test failed onmainfirst (2.8.0 != 3.1.0).test_publish_release.py: 5 passed, including the new stale-dashboard refusal test.Hosts will see the correct number after the next release installs. A host already on 3.1.0 has the right code, and only the label is wrong.