Skip to content

Harden flaky test E2E coverage#1346

Open
thebiglabasky wants to merge 4 commits into
mainfrom
herve/harden-flaky-test-e2e
Open

Harden flaky test E2E coverage#1346
thebiglabasky wants to merge 4 commits into
mainfrom
herve/harden-flaky-test-e2e

Conversation

@thebiglabasky

Copy link
Copy Markdown
Contributor

What changed

  • Deactivated the Skip SSL Check fixture API check instead of removing it, so a deploy can pause the existing Checkly resource without deleting it.
  • Excluded that check from the broad checkly test E2E smoke run with --grep, since checkly test still bundles matching inactive checks for ad-hoc execution.
  • Narrowed the GitHub reporter E2E to secret.check.ts so reporter assertions are not coupled to unrelated fixture checks.
  • Added local ApiCheck parse-project coverage to assert skipSSL: true is synthesized without relying on badssl.com during E2E runs.

Why

The failing E2E depended on https://self-signed.badssl.com/, which can reset connections from Checkly cloud runners. That made a broad CLI smoke test and the GitHub reporter test fail for reasons unrelated to the behavior they are intended to cover.

Validation

  • pnpm exec vitest --run ./src/constructs/__tests__/api-check.spec.ts
  • pnpm exec eslint e2e/__tests__/test.spec.ts src/constructs/__tests__/api-check.spec.ts
  • Commit hook ran pnpm run lint on staged files

I did not run the remote E2E suite locally because this shell does not have CHECKLY_API_KEY / CHECKLY_ACCOUNT_ID configured.

thebiglabasky and others added 4 commits June 10, 2026 11:26
…o herve/harden-flaky-test-e2e

# Conflicts:
#	packages/cli/e2e/__tests__/test.spec.ts
#	packages/cli/src/constructs/__tests__/fixtures/api-check/test-cases/test-skip-ssl/test.check.js
@thebiglabasky thebiglabasky changed the title [codex] Harden flaky test E2E coverage Harden flaky test E2E coverage Jun 10, 2026
@thebiglabasky thebiglabasky marked this pull request as ready for review June 10, 2026 09:40
@thebiglabasky thebiglabasky requested a review from sorccu June 10, 2026 20:49
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