Skip to content

test(e2e): bound infra poll click actions below the poll cadence (#6787) - #6788

Open
SamuelHassine wants to merge 1 commit into
mainfrom
fix/infra-poll-click-timeouts
Open

test(e2e): bound infra poll click actions below the poll cadence (#6787)#6788
SamuelHassine wants to merge 1 commit into
mainfrom
fix/infra-poll-click-timeouts

Conversation

@SamuelHassine

Copy link
Copy Markdown
Member

Related issue

Closes #6787

Summary

Follow-up nit from the review of #6786. Inside the toPass() poll loops of the agent infra specs, the Endpoints-tab and endpoint-row clicks relied on the global 60s Playwright actionTimeout. If the row was not yet present in a given iteration, a single click could block for up to 60s, defeating the intended 10s poll cadence and risking the very job-level timeouts the migration set out to remove.

Both clicks now take an explicit 5s timeout, keeping every poll iteration well under the 10s cadence.

Test plan

  • E2E Infra (x64) and E2E Infra (arm64) stay green and bounded.

Inside the toPass() poll loops of the agent infra specs, the Endpoints-tab and
endpoint-row clicks relied on the global 60s Playwright actionTimeout. If the
row was not yet present in a given iteration, a single click could block for up
to 60s, defeating the intended 10s polling cadence and risking the very job-
level timeouts the redesign migration set out to remove.

Give both clicks an explicit 5s timeout so every poll iteration stays well
under the 10s cadence. Addresses the review feedback on #6786.
Copilot AI review requested due to automatic review settings July 19, 2026 20:23
@github-actions github-actions Bot added the filigran team Item from the Filigran team. label Jul 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens the Playwright E2E “agent infra” polling loops so individual click actions can’t block on the global 60s actionTimeout, preserving the intended polling cadence and reducing risk of job-level timeouts.

Changes:

  • Add an explicit timeout: 5_000 to the Endpoints tab click inside toPass() polling loops.
  • Add an explicit timeout: 5_000 to the endpoint-row click inside toPass() polling loops (with clarifying inline comment).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
openaev-front/tests_e2e/tests/infra/agent-implant.spec.ts Bounds the Endpoints-tab and endpoint-row clicks to 5s within the toPass() poll loop to avoid 60s action stalls.
openaev-front/tests_e2e/tests/infra/agent-implant-multitenant.spec.ts Applies the same bounded-click behavior to the multi-tenant infra poll loop for consistent cadence and reduced timeout risk.

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.29%. Comparing base (8d84c92) to head (cb26eb9).

❌ Your project check has failed because the head coverage (2.92%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6788      +/-   ##
============================================
- Coverage     44.32%   44.29%   -0.03%     
+ Complexity     8063     8062       -1     
============================================
  Files          2425     2425              
  Lines         68682    68682              
  Branches       9509     9510       +1     
============================================
- Hits          30440    30422      -18     
- Misses        36220    36260      +40     
+ Partials       2022     2000      -22     
Flag Coverage Δ
backend 67.29% <ø> (-0.02%) ⬇️
e2e 16.80% <ø> (-0.38%) ⬇️
frontend 2.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

filigran team Item from the Filigran team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(e2e): bound infra poll click actions below the poll cadence

2 participants