Skip to content

Revamp e2e test suite to isolate each configuration#705

Merged
jviotti merged 9 commits intomainfrom
e2e-test-revamp
Mar 4, 2026
Merged

Revamp e2e test suite to isolate each configuration#705
jviotti merged 9 commits intomainfrom
e2e-test-revamp

Conversation

@jviotti
Copy link
Member

@jviotti jviotti commented Mar 4, 2026

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

@jviotti jviotti force-pushed the e2e-test-revamp branch 4 times, most recently from 7a6f23e to 3ae8108 Compare March 4, 2026 18:08
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark Index (community)

Details
Benchmark suite Current: c237d4a Previous: 8a21e62 Ratio
Add one schema (0 existing) 46 ms 43 ms 1.07
Add one schema (100 existing) 456 ms 405 ms 1.13
Add one schema (1000 existing) 4337 ms 4108 ms 1.06

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark Index (enterprise)

Details
Benchmark suite Current: c237d4a Previous: 8a21e62 Ratio
Add one schema (0 existing) 42 ms 55 ms 0.76
Add one schema (100 existing) 422 ms 454 ms 0.93
Add one schema (1000 existing) 3922 ms 4242 ms 0.92

This comment was automatically generated by workflow using github-action-benchmark.

@jviotti jviotti marked this pull request as ready for review March 4, 2026 18:47
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

3 issues found across 285 files

Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed.

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="test/e2e/headless/hurl/list.hurl">

<violation number="1" location="test/e2e/headless/hurl/list.hurl:130">
P2: Incorrect JSONPath index repeats entry 0 and skips validating `entries[1].baseDialect`.</violation>
</file>

<file name="test/e2e/common.mk">

<violation number="1" location="test/e2e/common.mk:21">
P1: Ensure `down` always runs even when tests fail; current `all` flow skips cleanup on failure.</violation>
</file>

<file name=".github/actions/e2e/action.yml">

<violation number="1" location=".github/actions/e2e/action.yml:20">
P1: Action inputs are interpolated into a shell command without validation, enabling command injection/path traversal via `suite` or `edition` values.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@augmentcode
Copy link

augmentcode bot commented Mar 4, 2026

🤖 Augment PR Summary

Summary: Revamps the E2E suite so each server configuration runs in its own self-contained Docker build/compose setup, reducing cross-suite coupling.

Changes:

  • Replaces the monolithic sandbox composite action with a parameterized e2e composite action.
  • Updates CI to run separate E2E suites for empty, headless, html, chaos, and an enterprise-only suite.
  • Introduces per-suite folders under test/e2e/ with their own Dockerfile, compose.yml, and test assets.
  • Adds a shared test/e2e/common.mk harness to standardize compose lifecycle + Hurl/Playwright execution.
  • Reworks root Makefile targets to align with the new suite layout and simplify local execution.
  • Moves Playwright UI tests under the HTML suite and reuses them for the enterprise suite.

Technical Notes: Suites build an image derived from one that pre-indexes a suite-specific one.json; Hurl is executed in CI via a pinned container image for consistent tooling.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

jviotti added 4 commits March 4, 2026 14:55
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti
Copy link
Member Author

jviotti commented Mar 4, 2026

TODO:

  • Somehow unify enterprise and html a bit more
  • See if we can move enterprise specific tests to ./enterprise

jviotti added 3 commits March 4, 2026 16:13
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti jviotti merged commit e74277f into main Mar 4, 2026
6 checks passed
@jviotti jviotti deleted the e2e-test-revamp branch March 4, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant