Missing Runs
What to check when test results don't reach Currents, on the first run or after runs stop arriving from CI
Use this page when a run doesn't show up in Currents, or when runs from CI stopped arriving. To have a coding agent do the checks, paste this prompt in the repository with your tests:
Find out why test results from this repository don't reach Currents. Read https://docs.currents.dev/guides/missing-runs.md and follow it.A run reached Currents when the test output has a link to it. Playwright prints Run URL: https://app.currents.dev/run/... when the run starts. Jest, Vitest and JUnit print the link when currents run upload finishes. Look for that line first, locally or in the CI log.
The first run doesn't show up
Check these in order.
The reporter ran. Playwright prints
Currents reporter: <version> recording to project <project-id>at the start. If the line is missing,currentsReporter()is not in thereporterlist ofplaywright.config, and the tests don't run withnpx pwc, which adds the reporter itself. A--reporterflag on the command line replaces the reporters in the config, so it removes Currents too.The results were uploaded. Jest, Vitest and JUnit don't send results during the test run.
Jest: the run writes a
.currentsfolder, andcurrents run uploadsends it. Runcurrents run uploadwith the same environment variables as the test run.Vitest and JUnit: the run writes a JUnit XML file, and
currents run upload --input-format junit --input-file <file>converts and sends it. Check that the XML file exists at the--input-filepath. Vitest writes it only when thejunitreporter is on andoutputFile.junitis set.
The Project ID and Record Key are set. The reporter reads
CURRENTS_PROJECT_IDandCURRENTS_RECORD_KEY, or the values incurrents.configor the command line flags. Currents rejects a Record Key that was deleted. See Record Key. A CI job that records without a stored key gets its record key from its OIDC token instead, see Record from CI with an OIDC token instead of a record key.The debug log. If the checks above pass, turn on debug mode and look for the error. The troubleshooting page for each framework shows how, and what to send to support: Playwright, Jest, Vitest, Cypress.
Runs stopped arriving from CI
Find the last run that arrived. In the Currents dashboard, open the project's runs and note the branch, commit and date of the latest one.
Compare the CI configuration since that commit. Look for:
the Currents reporter or
currents run uploadstep removed, or the test command changed (for example, a new--reporterflag)the test job skipped by new branch or path filters, or the tests no longer running at all
for Jest, Vitest and JUnit: the job stopping when tests fail, before the upload. Make
currents run uploadrun whatever the test result.
Check that the job can read the Record Key. A job without the secret reports nothing. Common causes:
GitHub Actions: pull requests from forks get no secrets.
GitLab: protected variables are available only on protected branches and tags.
CircleCI: the job's workflow doesn't attach the context that holds the secret.
Azure DevOps: the pipeline doesn't link the variable group that holds the secret.
The Record Key was deleted or rotated in Currents, and CI still uses the old one.
Check the CI Build ID on retries. If a retried build reuses the CI Build ID of a finished run, Currents doesn't accept new results for it. See CI Build ID.
If none of these explain it, collect the debug log as described on the framework's troubleshooting page and contact support.
Last updated
Was this helpful?