Skip to content

Remove ci connected mode#334

Open
rporres wants to merge 1 commit into
mainfrom
remove-connected-e2e
Open

Remove ci connected mode#334
rporres wants to merge 1 commit into
mainfrom
remove-connected-e2e

Conversation

@rporres
Copy link
Copy Markdown
Contributor

@rporres rporres commented May 7, 2026

We initially added connected deployment for testing purposes. Back then, the disconnected job took 8/6 hours to run so we had to get some option to test something in our CI. Now if we don't have a use case for connected mode we can remove it.

xref: https://redhat-internal.slack.com/archives/C09G9BS83T9/p1778134946053789

Summary by CodeRabbit

  • Chores

    • Streamlined E2E test deployment workflows by consolidating testing mode configurations and removing redundant execution parameters.
  • Documentation

    • Updated CI workflow documentation to reflect changes to test deployment configuration.

@github-actions github-actions Bot added the ci-cd CI/CD infrastructure label May 7, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

Review Change Stack

Warning

Rate limit exceeded

@rporres has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 42 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 026cd00b-83eb-4622-b815-01f0734b28c8

📥 Commits

Reviewing files that changed from the base of the PR and between 5edf07d and 660fc3f.

📒 Files selected for processing (5)
  • .github/workflows/e2e-deployment-rc.yml
  • .github/workflows/e2e-deployment.yml
  • .github/workflows/e2e-odf-schedule.yml
  • .github/workflows/slash-command.yml
  • docs/CI_WORKFLOWS.md

Walkthrough

GitHub Actions workflows consolidate E2E deployment testing to use disconnected-mode execution by default. The primary e2e-deployment.yml workflow removes run-connected and run-disconnected input parameters, simplifies decision logic and outputs, and gates the disconnected job on a unified should_run output. All downstream callers (RC workflow, scheduled workflow, slash commands) are updated to invoke the simplified workflow without the removed mode flags. Documentation and help text reflect the new disconnected-first approach.

Changes

E2E Deployment Mode Consolidation

Layer / File(s) Summary
Primary Workflow Input/Output Contract
.github/workflows/e2e-deployment.yml
Workflow header updated to unified disconnected mode; removed run-connected and run-disconnected inputs; simplified outputs to should_run and storage_plugins, removing storage_plugins_connected.
Decision Step and Matrix Selection
.github/workflows/e2e-deployment.yml
Decision step updated to compute should_run and storage_plugins matrix based on workflow event type and filter results, removing all connected-mode specific decision branches.
Disconnected Job Gating and Matrix Configuration
.github/workflows/e2e-deployment.yml
Disconnected job condition now depends solely on needs.check-e2e-needed.outputs.should_run == 'true' and event type; matrix sourced from unified storage_plugins output instead of mode-specific variants.
Downstream Workflow Dispatch Calls
.github/workflows/e2e-deployment-rc.yml, .github/workflows/e2e-odf-schedule.yml, .github/workflows/slash-command.yml
RC, scheduled, and slash-command workflows updated to invoke e2e-deployment.yml without the removed run-connected and run-disconnected input flags.
Help Text and Documentation Updates
.github/workflows/slash-command.yml, docs/CI_WORKFLOWS.md
Slash-command help table updated to advertise e2e-disconnected modes and /retest instead of e2e-connected; CI workflow documentation removes run-connected and run-disconnected input descriptions.

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: removing connected mode from the CI workflows across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-connected-e2e

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Tarball created: quay.io/edge-infrastructure/enclave:696163fa4a800e94628c56472d6af554f49fef44 (696163f)

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/e2e-deployment.yml (1)

3-8: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Stale header comment after removing connected mode.

Header still references "Both jobs" and "Manual dispatch allows selecting which modes to run". Only the disconnected job remains, and there are no mode-selection inputs.

📝 Proposed text update
 # Unified end-to-end deployment testing for disconnected mode.
 #
 #   - e2e-disconnected: Full air-gapped deployment with local mirror registry
 #
-# Both jobs run on every PR and nightly schedule. Manual dispatch allows
-# selecting which modes to run, skipping cleanup, and sending Slack notifications.
+# Runs on every PR and nightly schedule. Manual dispatch allows selecting the
+# storage plugin, skipping cleanup, and sending Slack notifications.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/e2e-deployment.yml around lines 3 - 8, The header comment
is stale: update it to describe that this workflow runs the single
e2e-disconnected job (full air-gapped deployment with local mirror registry) on
PRs and nightly schedules, and remove references to "Both jobs" and any mention
of manual dispatch mode-selection since there are no mode-selection inputs;
reference the existing job name e2e-disconnected and any manual_dispatch/input
keys in the workflow and replace the header with concise text explaining the
single-job purpose and trigger behaviors.
🧹 Nitpick comments (1)
.github/workflows/e2e-deployment.yml (1)

97-97: 💤 Low value

Drop stale reference to connected mode in inline comment.

The trailing sentence still mentions "Connected always uses lvms" even though the connected mode/job has been removed.

📝 Proposed text update
-          # ODF only runs in disconnected mode. Connected always uses lvms.
+          # Default storage plugin is lvms; odf is selected only via manual dispatch
+          # or when ODF-specific paths change.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/e2e-deployment.yml at line 97, Update the inline comment
that reads "ODF only runs in disconnected mode. Connected always uses lvms" to
remove the stale "Connected always uses lvms" clause; leave a concise comment
like "ODF only runs in disconnected mode." (Locate the inline comment containing
the phrase "Connected always uses lvms" and replace it accordingly.)
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/e2e-deployment.yml:
- Around line 130-135: The job e2e-disconnected is being skipped because the if
condition includes "github.event_name != 'workflow_dispatch'"; remove that
event-name guard so the job's if only checks
needs.check-e2e-needed.outputs.should_run == 'true' (keep the existing
runs-on/matrix logic unchanged). Locate the e2e-disconnected job and update its
if expression to drop the "&& github.event_name != 'workflow_dispatch'" clause
so workflow_dispatch callers can run the job.

In @.github/workflows/slash-command.yml:
- Line 105: Update the help text row that documents the `/test all` slash
command by removing the stale suffix "(both modes)" so it accurately reflects
that `/test all` runs validation + tarball + infra + e2e (disconnected only);
locate the table entry containing the string "/test all" in the
.github/workflows/slash-command.yml and edit the description to "Run validation
+ tarball + infra + e2e (disconnected)" or simply "Run validation + tarball +
infra + e2e".

---

Outside diff comments:
In @.github/workflows/e2e-deployment.yml:
- Around line 3-8: The header comment is stale: update it to describe that this
workflow runs the single e2e-disconnected job (full air-gapped deployment with
local mirror registry) on PRs and nightly schedules, and remove references to
"Both jobs" and any mention of manual dispatch mode-selection since there are no
mode-selection inputs; reference the existing job name e2e-disconnected and any
manual_dispatch/input keys in the workflow and replace the header with concise
text explaining the single-job purpose and trigger behaviors.

---

Nitpick comments:
In @.github/workflows/e2e-deployment.yml:
- Line 97: Update the inline comment that reads "ODF only runs in disconnected
mode. Connected always uses lvms" to remove the stale "Connected always uses
lvms" clause; leave a concise comment like "ODF only runs in disconnected mode."
(Locate the inline comment containing the phrase "Connected always uses lvms"
and replace it accordingly.)
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e2505ea0-767d-4e4d-9ed6-fa3704210959

📥 Commits

Reviewing files that changed from the base of the PR and between a90762b and 5edf07d.

📒 Files selected for processing (5)
  • .github/workflows/e2e-deployment-rc.yml
  • .github/workflows/e2e-deployment.yml
  • .github/workflows/e2e-odf-schedule.yml
  • .github/workflows/slash-command.yml
  • docs/CI_WORKFLOWS.md
💤 Files with no reviewable changes (3)
  • docs/CI_WORKFLOWS.md
  • .github/workflows/e2e-odf-schedule.yml
  • .github/workflows/e2e-deployment-rc.yml

Comment thread .github/workflows/e2e-deployment.yml
Comment thread .github/workflows/slash-command.yml Outdated
@rporres rporres force-pushed the remove-connected-e2e branch from 5edf07d to 55420bb Compare May 7, 2026 14:54
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Tarball created: quay.io/edge-infrastructure/enclave:a59a0af88e38d9279f28d8e9725780c41234cbea (a59a0af)

@rporres rporres force-pushed the remove-connected-e2e branch from 55420bb to 1feaf51 Compare May 7, 2026 15:24
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Tarball created: quay.io/edge-infrastructure/enclave:bf737107d7053459f4f9e828dbbc7c7fa05ce6ea (bf73710)

We initially added connected deployment for testing purposes.
Back then, the disconnected job took 8/6 hours to run so we had
to get some option to test something in our CI.
Now if we don't have a use case for connected mode we can remove it.

xref: https://redhat-internal.slack.com/archives/C09G9BS83T9/p1778134946053789

Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
@rporres rporres force-pushed the remove-connected-e2e branch from 1feaf51 to 660fc3f Compare May 7, 2026 15:26
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Tarball created: quay.io/edge-infrastructure/enclave:26e93809e19dd11f679ba56c2c7753e85714b19b (26e9380)

@rporres rporres added the hold hold a pull request from being merged label May 8, 2026
steps:
- name: Trigger E2E (LVMS)
run: |
gh workflow run e2e-deployment.yml --ref 0-rc -f send-slack-notification=true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gh workflow run e2e-deployment.yml --ref 0-rc \
-f run-connected=false \
-f run-disconnected=true \
-f storage-plugin=lvms \
-f send-slack-notification=true

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

Labels

ci-cd CI/CD infrastructure hold hold a pull request from being merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants