OPCT-454: skip dependency waiter when no blocker plugin configured - #94
OPCT-454: skip dependency waiter when no blocker plugin configured#94bshaw7 wants to merge 3 commits into
Conversation
In upgrade mode, OPCT CLI sets PLUGIN_BLOCKED_BY to empty in the
collector manifest template (plugins 10/20/80 are skipped). However,
the wait-updater Go code ignores the --blocker flag and uses the
hardcoded BlockerPlugins from NewPlugin(), causing the collector to
poll indefinitely for a non-existent plugin 80 pod.
Fix at two layers:
- wait-updater.go: early return when --blocker is empty
- entrypoint-collector.sh: skip wait-updater call when
PLUGIN_BLOCKED_BY is empty
Co-Authored-By: bshaw7
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/kind bug |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
NewPlugin() hardcodes BlockerPlugins in its switch statement, ignoring the --blocker flag passed from PLUGIN_BLOCKED_BY env var. Override the hardcoded value after plugin creation so the OPCT CLI template controls which plugin the collector waits for in upgrade mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When wait-updater passes full plugin name like 05-openshift-cluster-upgrade, PluginFullNameByName() didnt recognize it and returned -05-openshift-cluster-upgrade (leading minus), breaking pod label lookup. Fix: return alias directly when input already contains plugin ID prefix.
Test 5 Validation -- Full end-to-end 4.20 to 4.21 upgrade (2026-08-19)Cluster: bshaw2 (AWS, 4.20.34 to 4.21.28, All three fixes validated1. entrypoint-collector.sh skip when empty ( 2. wait-updater.go blocker override ( 3. PluginFullNameByName alias fix ( End-to-end resultCollector waited for plugin 05, detected completion, collected artifacts, passed all 13 checks. |
Summary
PLUGIN_BLOCKED_BYto empty (conformance plugins skipped)wait-updaterignored the--blockerflag and used hardcodedBlockerPluginsfromNewPlugin()Changes
wait-updater.go: early return when--blockeris emptyentrypoint-collector.sh: skipwait-updatercall whenPLUGIN_BLOCKED_BYis emptyTest plan
opct run --mode upgradeon cluster🤖 Generated with Claude Code
EOF