Skip to content

ci(e2e): expand DEV pool to 22 orgs - #9142

Merged
rh-hemartin merged 1 commit into
mainfrom
codex/expand-e2e-pool-22
Nov 6, 2026
Merged

rh-hemartin merged 1 commit into
mainfrom
codex/expand-e2e-pool-22

Conversation

@ralphbean

@ralphbean ralphbean commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Expand the DEV e2e pool from 12 to 22 orgs, giving the slot allocator 264 repository slots.
  • Update preview mint grouping, the inference gateway allowlist, tests, and operator docs for the larger pool.

Validation

  • go test ./pkg/behaviourtest/drivers/install ./pkg/behaviourtest ./internal/e2etest
  • bash hack/setup-e2e-inference-gateway_test.sh
  • make lint

The orgs halfsend-13 through halfsend-22 have been provisioned and per-repo mint enrollment is complete. CI leased slots in the new orgs, including halfsend-22; the playback suite passed.

The behavior suite passed 88 of 89 scenarios. Its only failure was the gateway OIDC route: the probe got HTTP 403 on halfsend-14/test-repo-05. The live inference gateway allowlist still needs its rollout; the setup script could not authenticate because this environment has no usable gcloud credentials. Update the gateway allowlist and rerun the e2e workflow.

Signed-off-by: Ralph Bean <rbean@redhat.com>
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Expand DEV e2e pool to 22 organizations

✨ Enhancement 🧪 Tests 📝 Documentation ⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Expand the DEV pool to 22 organizations, providing 264 repository slots.
• Extend gateway allowlist generation and validate four preview-mint groups for the larger pool.
• Update operator guidance; the live gateway allowlist still requires rollout.
Diagram

graph TD
  A["DEV suites"] --> B["Pool layout"] --> C["Slot allocator"] --> D["Mint planner"] --> E["CF previews"]
  C --> F["Gateway allowlist"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Generate the gateway allowlist from a shared pool definition
  • ➕ Reduces the chance that gateway authorization drifts from the DEV pool.
  • ➖ Adds a cross-language configuration dependency and changes the gateway deployment workflow for a bounded pool expansion.

Recommendation: Keep the existing derived Go layout and dynamic mint packing for this expansion; no grouping algorithm change is needed. The explicit gateway list is reasonable with its count test, but the live allowlist must be rolled out before gateway-gated CI can use the new organizations. Consider a shared definition if pool changes become frequent.

Files changed (14) +63 / -39

Enhancement (2) +13 / -3
testutil.goAdd ten organizations to the e2e pool +10/-0

Add ten organizations to the e2e pool

• Extends the shared e2e organization list through halfsend-22.

internal/e2etest/testutil.go

slotpool.goRaise DEV pool capacity to 22 organizations +3/-3

Raise DEV pool capacity to 22 organizations

• Sets the DEV organization count to 22, allowing the derived layout to expose 264 default repository slots.

pkg/behaviourtest/drivers/install/slotpool.go

Tests (5) +24 / -20
setup-e2e-inference-gateway_test.shAssert the expanded gateway allowlist size +2/-2

Assert the expanded gateway allowlist size

• Changes the generated-config assertion to expect 276 unique repositories across the 22 DEV organizations and STAGE.

hack/setup-e2e-inference-gateway_test.sh

mint_groups_test.goValidate four-group packing for the larger pool +12/-9

Validate four-group packing for the larger pool

• Updates default, byte-boundary, alternate-slot-count, and status-group expectations for 22 organizations.

pkg/behaviourtest/drivers/install/mint_groups_test.go

repopool_cfmint_previews_test.goAssert the new final preview-pool organization +1/-1

Assert the new final preview-pool organization

• Changes the derived DEV organization test to expect halfsend-22 as the last organization.

pkg/behaviourtest/drivers/install/repopool_cfmint_previews_test.go

slotpool_test.goCover 22-org naming, layout, and capacity +6/-5

Cover 22-org naming, layout, and capacity

• Asserts the new final organization and slot and verifies 264-slot allocator capacity.

pkg/behaviourtest/drivers/install/slotpool_test.go

select_test.goUse expanded capacity in concurrency tests +3/-3

Use expanded capacity in concurrency tests

• Updates representative concurrency cases to use the new 264-slot DEV capacity without changing concurrency behavior.

pkg/behaviourtest/select_test.go

Documentation (6) +25 / -15
behaviour-drivers.mdDocument the expanded preview-mint layout +2/-2

Document the expanded preview-mint layout

• Updates the DEV organization range and the expected number of preview mints from two to four.

docs/guides/dev/behaviour-drivers.md

behaviour-testing.mdDocument DEV suite capacity and mint groups +3/-3

Document DEV suite capacity and mint groups

• Describes 22 DEV organizations, 264 available slots, and four mint groups at the default pool size.

docs/guides/dev/behaviour-testing.md

e2e-testing.mdExtend e2e provisioning and gateway guidance +17/-7

Extend e2e provisioning and gateway guidance

• Updates organization ranges, enrollment instructions, status-team entries, installation guidance, and the gateway allowlist total of 276 repositories including STAGE.

docs/guides/dev/e2e-testing.md

infrastructure-reference.mdExtend test-app permission rollout guidance +1/-1

Extend test-app permission rollout guidance

• Includes all 22 numbered pool organizations in the operator instructions for accepting app permission changes.

docs/guides/infrastructure/infrastructure-reference.md

repopool_cfmint_stage.goClarify the DEV range beside the STAGE org +1/-1

Clarify the DEV range beside the STAGE org

• Updates a comment contrasting STAGE's single organization with the expanded DEV pool.

pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go

select.goClarify the selected DEV pool range +1/-1

Clarify the selected DEV pool range

• Updates the factory configuration comment to describe the 22 numbered DEV organizations.

pkg/behaviourtest/select.go

Other (1) +1 / -1
setup-e2e-inference-gateway.shInclude new pool orgs in gateway configuration +1/-1

Include new pool orgs in gateway configuration

• Adds halfsend-13 through halfsend-22 to the organizations used to generate repository allowlists. Applying the live gateway configuration remains a separate operator step.

hack/setup-e2e-inference-gateway.sh

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:09 PM UTC · Completed 10:20 PM UTC

Commit: ce0d012 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.48

@qodo-code-review

qodo-code-review Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 🔗 Cross-repo conflicts (1) 📜 Skill insights (0)

Grey Divider


Action required

1. Gateway checks fail for new pool orgs 🐞 Bug ≡ Correctness
Description
DevPoolOrgCount makes orgs 13–22 eligible for leases before the live gateway allowlist includes
them; editing POOL_ORGS does not deploy the new configuration. When a gateway-gated scenario
leases one of those orgs, its repository is denied, and the documented rollout command cannot
resolve this without --allow-frozen-change because the pool-list difference fails the
frozen-config check.
Code

pkg/behaviourtest/drivers/install/slotpool.go[44]

+	DevPoolOrgCount = 22
Relevance

●● Moderate

No close precedent on gateway allowlist rollout. The PR description already states the live rollout
is pending, so this is a known operational gap. Similar process-gate findings were dismissed, but
not closely.

PR-#8836
PR-#8499

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The allocator shuffles all slots in the expanded layout, while the gateway authorizes exact
repository names from a separately deployed secret. The PR description states that the live
allowlist rollout is pending; the script and operator guide show why simply running the documented
apply command will not complete it.

pkg/behaviourtest/drivers/install/slotpool.go[40-44]
pkg/behaviourtest/drivers/install/slotpool.go[394-399]
hack/setup-e2e-inference-gateway.sh[240-253]
hack/setup-e2e-inference-gateway.sh[886-907]
docs/guides/dev/e2e-testing.md[462-478]
docs/guides/dev/e2e-testing.md[526-541]
e2e/behaviour/features/runtime/inference-gateway.feature[64-75]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The expanded pool can lease repositories that the live gateway has not yet authorized. The normal gateway setup command rejects this pool-list change as a frozen configuration difference.

## Fix Focus Areas
- pkg/behaviourtest/drivers/install/slotpool.go[43-44]
- hack/setup-e2e-inference-gateway.sh[96-96]
- docs/guides/dev/e2e-testing.md[635-636]

## Recommended Fix
Have an authorized operator deploy and verify the expanded gateway allowlist with `--allow-frozen-change` outside a release window before enabling the new orgs for gateway-gated CI. If that rollout cannot precede the pool expansion, keep those orgs out of eligible leases until it completes; update the pool-change instructions to include the required flag and rollout order.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗



Remediation recommended

2. Agents tests cannot use new orgs 🔗 Cross-repo conflict ≡ Correctness
Description
DevPoolOrgCount now includes halfsend-13 through halfsend-22, but the agents repository’s
authorization instructions grant its e2e caller access only through halfsend-12; Fullsend’s
pool-org setup script grants only the Fullsend caller. Agents CI currently pins an older Fullsend
version, but once that pin advances, leases in the new orgs will fail token authorization unless the
agents grant is extended.
Code

pkg/behaviourtest/drivers/install/slotpool.go[44]

+	DevPoolOrgCount = 22
Relevance

●● Moderate

Recommendation generated with fallback mode.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR adds ten orgs to the DEV layout, while the agents suite consumes Fullsend’s behaviour runner
and its documented grant loop stops at org 12. Fullsend’s provisioning script checks only its own
caller; the agents workflow is pinned to an older Fullsend version, making the failure contingent on
a later dependency update.

fullsend -> agents
pkg/behaviourtest/drivers/install/slotpool.go[42-44]
hack/setup-new-e2e-org.sh[537-549]
External repo: fullsend-ai/agents, docs/behaviour-testing.md [78-89]
External repo: fullsend-ai/agents, behaviour/suite_test.go [10-24]
External repo: fullsend-ai/agents, go.mod [1-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The expanded DEV pool includes ten orgs not covered by the agents repository’s e2e caller authorization instructions.

## Fix Focus Areas
- pkg/behaviourtest/drivers/install/slotpool.go[42-44]
- hack/setup-new-e2e-org.sh[537-549]
- /cross_repos/agents/docs/behaviour-testing.md[78-89]

## Recommended Fix
Grant `fullsend-ai/agents` the e2e foreign-caller permission in `halfsend-13` through `halfsend-22`, and update the agents authorization instructions and provisioning process to cover the expanded pool before advancing its Fullsend dependency.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 96 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/agents (sha: 416a47dd) — View relationship
  Explored: repo: fullsend-ai/org (sha: 662aca9d) — View relationship
✅ REVIEW.md
Review mode: Auto: ⚖️ Balanced: Mostly constant bumps, but touches gateway authorization allowlist and CI pool config.

Grey Divider

Tip of the day
💡 Did you know, you can switch off images and animations for a plain-text comment

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Site preview

Preview: https://7f766948-site.fullsend-ai.workers.dev

Commit: ce0d0121e009666711252cad5b848d1e3fd98f6b

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 5, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate file count across documentation and e2e test harnesses with no protected paths or workflow changes, balanced by active recent churn in testing guides, warrants a moderate risk score.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Low

  • [missing-authorization] pkg/behaviourtest/drivers/install/slotpool.go:44 — The PR expands the DEV e2e pool from 12 to 22 orgs (DevPoolOrgCount = 22) without a linked tracking issue. The PR body does describe the scope and rollout status, and the change is confined to e2e/behaviour-test setup, so this is a process note only.
    Remediation: Optionally reference a tracking issue for the DEV e2e pool expansion in the PR description.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rh-hemartin
rh-hemartin enabled auto-merge November 6, 2026 10:32
@rh-hemartin
rh-hemartin added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 21ba75e Nov 6, 2026
84 of 88 checks passed
@rh-hemartin
rh-hemartin deleted the codex/expand-e2e-pool-22 branch November 6, 2026 11:27

This branch was successfully deployed

1 active and 1 inactive deployments
dev — ce0d0121 Deployed Nov 6, 2026 by ralphbean via behaviour #19026
site-preview — ce0d0121 Deployed Nov 5, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants