Skip to content

Run session tests in CI alongside routing tests - #2

Merged
baijum merged 1 commit into
mainfrom
ci-session-tests
Jul 26, 2026
Merged

baijum merged 1 commit into
mainfrom
ci-session-tests

Conversation

@baijum

@baijum baijum commented Jul 26, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #1: tests/test-session.scm (cookies, sessions, auth — 21 checks) was only exercised by the org nightly workflow, so PR-level regressions in session/auth code went uncaught until the next nightly run — which is exactly how the session id collision fixed in #1 surfaced.

Changes

  • Add a Run session tests step mirroring the routing step (same lib paths and library-path env).
  • Each test file now writes its own Cobertura XML (coverage-routing.xml, coverage-session.xml) so the second run doesn't overwrite the first's coverage; the Codecov step uploads both.

Not included: tests/test-app.sh / test-app-server.scm — the script hardcodes sibling-checkout lib paths ($DIR/../../kaappi-http) that don't match CI's /tmp clone layout, so it would need its own rework to be CI-safe.

Verification

Ran the exact new command shape locally against a main-built kaappi: 21/21 checks pass and valid Cobertura XML is produced. This PR's own CI run exercises the new step directly.

🤖 Generated with Claude Code

tests/test-session.scm (cookies, sessions, auth — 21 checks) was only
exercised by the org nightly workflow, so PR-level regressions in
session and auth code went uncaught until the next nightly run — as
happened with the session id collision fixed in #1.

Each test file writes its own Cobertura XML so the second run does not
overwrite the first's coverage; Codecov uploads both.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@baijum
baijum merged commit 792701e into main Jul 26, 2026
2 checks passed
@baijum
baijum deleted the ci-session-tests branch July 26, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant