Repository navigation
Check the R env against its pin file and report every reference difference - #16
Merged
Merged
Conversation
…rence The full-workflow check on the vars_to_regress PR failed on one reference comparison (nCount_SCT off by up to 2 in one DoubletFinder object) and stopped there, while the same objects match the references on the cluster. The likeliest cause is that GitHub's R environment is not the pinned one: when installing from the pin file fails, Snakemake builds the environment from scrnaseq_r.yml instead, and pytest hides its warning because it captures Snakemake's output. - tests/test_r_env_pin.py builds (or reuses) the rule R environment and fails when it does not hold exactly the pin file's packages, listing the packages that differ and the error conda gave. - The full-workflow test and compare_seurat_metadata.R report every difference instead of stopping at the first. Tolerances are unchanged. - On GitHub Actions, failing tests also print their report as an error annotation, and a failing full-workflow job uploads testdata/results, Snakemake's logs and each rule environment's package list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check failed on PR #15 and PR #16 because GitHub's runner computes SCTransform slightly differently from the cluster, not because of the workflow. The failing runs came during GitHub's move of ubuntu-latest to Ubuntu 26.04 (October 19 to November 19, 2026); the last passing run, on October 14, still carried the migration notice that 24.04 runs show. In run 44668646672's artifact, the RNA counts of all 27 objects match the references exactly. What differs, in every object, is SCTransform's first-step dispersion estimate for a few nearly Poisson genes: infinite on one side and finite on the other in the worst cases. In 2 of the 27 objects, that changed 21 rounded SCT counts and moved 2 cells to another cluster. Rerunning those two steps from GitHub's own inputs on the cluster (Rocky 8, glibc 2.28) reproduces the references, with every SCT model value identical; in Ubuntu 24.04 (glibc 2.39) they match to about 1e-10. The job now runs in rockylinux:8.10 with LANG=en_US.UTF-8, as on the cluster. Its CellBender shim path comes from $GITHUB_WORKSPACE, because ${{ github.workspace }} names the runner's directory in a container job, and its Snakemake environments are cached under their own key, because Snakemake hashes each environment's path into its directory name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The full-workflow check failed on #15, and on this PR's first commit, because GitHub's runner computes SCTransform slightly differently from the cluster, not because of a workflow change. The failures came during GitHub's move of
ubuntu-latestto Ubuntu 26.04 (October 19 to November 19, 2026). The last passing run, on October 14, still ran on 24.04.The first commit's failure artifact showed:
Changes
rockylinux:8.10withLANG=en_US.UTF-8, as on the cluster, so R computes with the same C math library as the runs that made the references. Its Snakemake environments are cached under a new key, because Snakemake hashes each environment's path into its name, and the CellBender shim's path comes from$GITHUB_WORKSPACE.tests/test_r_env_pin.py, in the default suite, builds or reuses the rule R environment. It fails when the environment doesn't hold exactly the pin file's packages, and lists the packages that differ and the error conda gave.tests/test_snakemake_workflow_run.pyandtests/compare_seurat_metadata.Rreport every difference instead of stopping at the first.testdata/results, Snakemake's logs and each rule environment's package list asfull-workflow-outputs, kept for 14 days.No workflow rule, default, tolerance or reference output changes.
Checks
The full-workflow check passes in the container (run 44757651102): the workflow ran in full (2 h 19 min) and every output matches the references.
🤖 Generated with Claude Code