Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ contain breaking changes; [UPGRADING.md](UPGRADING.md) lists them).
- Wording: the app, the in-app guide, the README and the user guide say "release" where they said "ship". Home's verdict banner reads "release cleared", "review before release" or "release blocked by unresolved failures"; Run intelligence reads "release cleared" or "release blocked"; the Releases page counts "Ready to release", says a GO release "is ready to release", and its "Shipping this week" panel is "Due this week". The escape rate counts defects filed after a release "went live". The README tagline is "Know why your software tests fail. Know when your release is ready." API fields keep their names (`ready_to_ship` is unchanged).
- Releases: the "Offline bundle" workflow takes a release version (`gh workflow run offline-bundle.yml -f version=X.Y.Z`) and bundles the image digests that release promoted instead of rebuilding them, refusing if they are not CI's images of the tagged commit. Every bundle run also produces `SHA256SUMS` for `install.sh` and the files it downloads.
- Tests: the integration suite runs clean as one process against real Postgres, Valkey, MongoDB and S3 (2,612 passed locally, was 4 failed and 6 errors). The integration conftest closes the cached MongoDB client and drops the cached Valkey pool at every module boundary, as the worker loop runner does after each loop, so a file that leaves one bound to its event loop no longer breaks the next. The LLM cost-cap tests keep the circuit breaker's keys per test (a tripped breaker failed every rerun of the file); the live-protocol and cost-cap tests release the shared Valkey pool; the decision-report supersession tests create the failing test case they need instead of skipping on a fresh database. `backend/tests/integration/conftest.py` and four test files.
- Tests: the export download-ticket lifetime test reads its lower bound from the clock after the ticket is minted instead of assuming minting takes under 2 s; it failed on a loaded CI runner (ticket 26 s, bound 28 s) although the ticket was right. `backend/tests/test_project_data_download.py`.
- Tests: real-Postgres tests now cover failure attribution's previous-run outcome (D-0004), the suite trend's day counts, flaky-score upserts, live-run finalisation and the failed-run list behind "re-analyse all". A Skip-AI upload is driven through to a scripted model and makes no model reservation (D-0006). Every native producer report in `e2e-runner/fixtures/` is detected and parsed to its exact tests in the backend job, not only at release time. `backend/tests/integration/test_attribution_baseline_postgres.py` and five neighbours, `backend/tests/regression/test_native_producer_reports_parse.py`.
- Tests: security tests pin that an expired, deactivated or orphaned API key is refused on reads, ingest and streaming; that replaying a refresh token revokes the user's whole token family; that SAML sign-in reads claims only from the element the identity provider signed and refuses SHA-1; that a project role gate follows the project membership and always sits next to a project access check; that no route's role floor drops without a reviewed snapshot change; that no XML or `.xlsx` upload can read a local file or expand entities; that a member of one project reads and writes nothing of another through path, query or body ids; and the CSP and Referrer-Policy values. `backend/tests/test_security_*.py`, `backend/tests/integration/test_security_*_postgres.py`.
- Tests: the run list, run detail, run tests and keyword search reads have a fixed number of SQL statements whatever the page holds; every page-size parameter is bounded and a raised bound needs a snapshot change; every Celery task's queue is one the supported topologies run; two concurrent uploads of one build end as one run with one row per test; and the five most-opened pages make exactly their expected requests on first load. No test measures time. `backend/tests/test_perf_*.py`, `backend/tests/integration/test_perf_*_postgres.py`, `frontend/tests/ci-e2e/perf-hot-pages-request-inventory.spec.ts`.
Expand Down
10 changes: 8 additions & 2 deletions backend/tests/test_project_data_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,20 @@ async def test_an_export_with_under_a_second_left_is_refused_as_expired(


async def test_the_ticket_lives_no_longer_than_the_export(factory: Any, world: Any, redis: FakeRedis) -> None:
expires_at = datetime.now(timezone.utc) + timedelta(seconds=30)
job = await _job(factory, kind="export", status="succeeded", project_id=world.project.id,
requested_by_id=world.lead.id, storage_key="project-exports/x/a.zip",
expires_at=datetime.now(timezone.utc) + timedelta(seconds=30))
expires_at=expires_at)
async with _client(factory, world.lead) as client:
minted = await client.post(_ticket_path(job.id))
after = datetime.now(timezone.utc)
assert minted.status_code == 200
(_, (_, _, ex)), = redis.store.items()
assert minted.json()["expires_in"] == ex and 28 <= ex <= 30
# The ticket lives the whole seconds left on the export, under the 60 s cap.
# The lower bound is read from the clock after minting, not assumed: a fixed
# 28 s failed on a loaded CI runner that took over 3 s to mint (main bc71694c).
assert minted.json()["expires_in"] == ex
assert int((expires_at - after).total_seconds()) <= ex <= 30


async def test_without_redis_the_ticket_is_503_with_its_sentence(
Expand Down
Loading