Failed
Open on GitHub

fix(journey-client): x-requested-platform header

RRyan Bas

Self-Healing CI

Classification: Flaky task

We traced this failure back to @forgerock/api-report:test, which is unrelated to this PR's change (a single X-Requested-Platform header added to journey-client). The failure is two integration tests timing out at 5000ms during CPU-bound api-extractor calls, exceeding the limit by only ~300-400ms, which points to timing variance rather than a defect introduced here.

An empty commit was automatically applied to the branch to trigger a new CI pipeline execution to resolve the flaky task.

The PR diff only touches two things: packages/journey-client/src/lib/journey.api.ts, where a single line adds headers.set('X-Requested-Platform', 'javascript'), and a changeset file documenting that change. Neither file has any relationship to the tools/api-report package.

touched_projects lists only forgerock-verdaccio and @forgerock/journey-client. @forgerock/api-report, the project whose test is failing, is not among them, so the failing task's project was not modified by this PR.

The failing task output shows two tests in tools/api-report/src/integration.spec.ts, "should produce zero errors after fix + rebuild cycle" and "should handle multiple entry points", both failing with "Test timed out in 5000ms." The actual run times were 5380ms and 5399ms, only marginally over the limit. These tests perform multiple synchronous, CPU-bound analyzePackage (api-extractor) calls plus filesystem writes in sequence, which makes them sensitive to machine load rather than to any specific code path. The other four tests in the same suite, exercising similar analyzePackage logic, passed within the same run.

The similar-task-failure-detector subagent found no historical data to compare against for this exact task, and mcp__utilities__task_flakiness_rates reported a nonzero flakiness rate (~0.53%) for @forgerock/api-report:test.

Taken together, there is no code path connecting the changed line, a header addition in journey-client, to the timing failure in an entirely different package's test suite. That absence of any causal link, combined with the marginal timeout overshoot and the nonzero recorded flakiness rate, is why this was not classified as code_change and was instead classified as flaky_task.