Skip to content

fix(install-dynamic-plugins): clear stale npm hashes before cleanup (RHDHBUGS-3900) - #5578

Merged
openshift-merge-bot[bot] merged 2 commits into
redhat-developer:release-1.10from
Fortune-Ndlovu:fix/RHDHBUGS-3900-npm-stale-hash-cleanup
Oct 2, 2026
Merged

openshift-merge-bot[bot] merged 2 commits into
redhat-developer:release-1.10from
Fortune-Ndlovu:fix/RHDHBUGS-3900-npm-stale-hash-cleanup

Conversation

@Fortune-Ndlovu

@Fortune-Ndlovu Fortune-Ndlovu commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Clear stale plugin_path_by_hash entries for npm/local installs after extraction (same as OCI already does), so the end-of-run cleanup does not delete a plugin that was just reinstalled when the dynamic-plugins PVC still has a prior config hash.
  • Fixes global-header (and other local/npm plugins) disappearing on first rollout after a pluginConfig override without requiring a pod restart.

Jira: RHDHBUGS-3900

@openshift-ci
openshift-ci Bot requested review from 04kash and schultzp2020 October 2, 2026 13:43
@Fortune-Ndlovu
Fortune-Ndlovu force-pushed the fix/RHDHBUGS-3900-npm-stale-hash-cleanup branch from cdf094a to b95f6ba Compare October 2, 2026 13:44
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.69%. Comparing base (4204a4a) to head (527228d).
⚠️ Report is 1 commits behind head on release-1.10.

Additional details and impacted files
@@                Coverage Diff                @@
##           release-1.10    #5578       +/-   ##
=================================================
+ Coverage         41.03%   69.69%   +28.65%     
=================================================
  Files               121      111       -10     
  Lines              2220     4715     +2495     
  Branches            562      536       -26     
=================================================
+ Hits                911     3286     +2375     
- Misses             1304     1428      +124     
+ Partials              5        1        -4     
Flag Coverage Δ
install-dynamic-plugins 92.48% <100.00%> (?)
rhdh 38.81% <ø> (-2.23%) ⬇️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4204a4a...527228d. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

Comment thread .github/workflows/pr.yaml Fixed
Comment thread .github/workflows/pr.yaml Fixed
Comment thread .github/workflows/pr.yaml Fixed
Comment thread .github/workflows/pr.yaml Fixed
@Fortune-Ndlovu
Fortune-Ndlovu force-pushed the fix/RHDHBUGS-3900-npm-stale-hash-cleanup branch from 306d173 to a5e524f Compare October 2, 2026 13:52
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

Comment thread .github/workflows/pr.yaml Fixed
Comment thread .github/workflows/pr.yaml Fixed
Comment thread .github/workflows/pr.yaml Fixed
Comment thread .github/workflows/pr.yaml Fixed
When a local/npm plugin is reinstalled into the same directory after a
config change, stale plugin_path_by_hash entries caused the final
cleanup pass to remove the freshly installed plugin (RHDHBUGS-3900).

Mirror the OCI installer behavior by popping hash keys for the target
directory after npm/local extraction.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
@Fortune-Ndlovu
Fortune-Ndlovu force-pushed the fix/RHDHBUGS-3900-npm-stale-hash-cleanup branch from a5e524f to 59be643 Compare October 2, 2026 13:56
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

Pin actions/setup-python@v6.3.0 and run tests via `python -m pytest` so
CI does not use the runner's broken ~/.local/bin/pytest shim. Leave existing
pip install lines unchanged for SonarCloud.

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@rm3l

rm3l commented Oct 2, 2026

Copy link
Copy Markdown
Member

/hold Let's see if we need to integrate this for 1.10.5 (currently in CF) or hold until 1.10.6

@openshift-merge-bot
openshift-merge-bot Bot merged commit 59b7654 into redhat-developer:release-1.10 Oct 2, 2026
23 checks passed
@rm3l

rm3l commented Oct 2, 2026

Copy link
Copy Markdown
Member

Ah, I was just going to ask on the rhdh-release Slack channel, but it looks like this got merged already. Anyway, I guess it should be fine to integrate this in 1.10.5 since the 1.10.5 RC builds have not started yet, right @polasudo ?

@polasudo

polasudo commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Looking at the updates, they have not yet started so it should be fine

@rtaniwa

rtaniwa commented Oct 2, 2026

Copy link
Copy Markdown

i was actually going to see if we could slip this into 1.10.5 to avoid it showing up in the demo, so this is good. thanks @rm3l @Fortune-Ndlovu @polasudo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants