Repository navigation
fix(differential): stop declaring the unregistered package so CI can instantiate - #314
Conversation
`Pkg.instantiate()` failed in CI ("Julia tests": Instantiate Julia project),
so nothing downstream of it ran. `Project.toml` declared `CompositionalDA`,
which is not in the General registry and has no Manifest entry to resolve
against: the declaration alone is enough to make resolution fail for every
checkout, CI included.
The module already imports the package opportunistically, so the declaration is
what has to go. It is replaced by a note in `Project.toml` recording why it is
absent and what has to arrive with it (the dependency, its `[compat]` bound and
the regenerated `Manifest.toml`, in one change) once it is registered.
`compositional_da_available()` is exported so callers and tests can ask the
question the guard answers, and the refusal message now says where the package
comes from instead of pointing at a `Project.toml` entry that no longer exists.
The input checks (retained taxa, Int range) now run before the dependency
probe, so a malformed matrix is refused for that reason whether or not the
package is installed.
Co-authored-by: arena-agent <[email protected]>
`test_differential_native.jl` began with `import CompositionalDA`, so the unit suite could not load at all without a package CI cannot install, and the route test in `test_differential.jl` asserted a 200 from a method that could not run. Both now branch on `compositional_da_available()`: - The configuration boundary fuzz, the oversize-count refusal and the constructor errors run everywhere. - Without the package, the refusal is what is tested: both native methods raise an `ArgumentError` naming `CompositionalDA` and pointing at `nb_glm`, and the route answers 400 `invalid_input` with that message rather than a 500 or a table of numbers no model produced. - With the package developed into the environment, the adapter and ANCOM-BC comparisons run unchanged against it. The skips announce themselves (`@info`) the way the R- and glmGamPoi-dependent testsets in this file already do, so a silent gap is visible in the log. Co-authored-by: arena-agent <[email protected]>
The web-interface guide listed only `nb_glm` and `clr_welch`, so `aldex2` and `ancombc` were reachable through config and the UI without being described. It now names both, says what they compute and which settings drive them (`mc_samples`, `seed`), and states up front that they need `CompositionalDA`, which is not installable yet, so the two methods refuse by name until it is developed into the environment. Co-authored-by: arena-agent <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This is the analysis for upstream #70, posted here because the token used for this session has read-only access to Two separate things are showing on #70. Neither is a finding against the code. 1. The Codex
|
| Step | Result |
|---|---|
Pkg.instantiate() |
✅ passes (fails here as pushed) |
julia --project=. test/runtests.jl test_differential test_differential_native |
✅ 1013 passed, 0 failed, 18 skipped |
Native configuration boundary fuzz 790 · Native input boundaries 5 · Native methods refuse by name 8 · Route: native method override and input refusal 16 · the two adapter testsets skip (they need the package). Frontend gates were run locally too: bun run build and bun test src → 68 pass, 1 skip, 0 fail.
Next step
- Merge fix(differential): stop declaring the unregistered package so CI can instantiate #314 into
validation/issue-23-native-da. - Re-run the
CIworkflow on this PR. The instantiate step should pass and the suite should go green; the native adapter parity tests stay skipped untilCompositionalDAis registered (or added as a[sources]git dependency with its regeneratedManifest.toml) — that is the one piece of this PR that still cannot run in CI.
Merging this PR into validation/issue-23-native-da updates #70's head and re-triggers upstream CI, which is the only way to see the real job go green — the fork cannot run ci.yml at all (action policy).
|
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |



Change and reason
Julia testswas failing on #70 at Instantiate Julia project, so every step after it — RCall, the suite, coverage — was skipped. The cause is a single declaration:Project.tomlnamedCompositionalDA(bb1787b7-…) in[deps]and[compat], but the package is not in the General registry and there is noManifest.tomlentry to resolve it against.Pkg.instantiate()therefore cannot resolve the project and exits 1 on every checkout, CI included — before any test runs.The module already imports the package opportunistically (
_COMPOSITIONAL_DA_AVAILABLE), so the declaration is the only thing that has to go. This PR removes it and keeps the feature intact behind that guard:Project.toml— the declaration is gone, replaced by a comment recording why it is absent and what must land together when it is registered (dependency +[compat]bound + regeneratedManifest.toml, in one change).src/analysis/differential.jl— the refusal message no longer points at aProject.tomlentry that no longer exists;compositional_da_available()is exported so callers (and tests) can ask the question the guard answers; the input checks (retained taxa,Intrange) now run before the dependency probe, so a malformed matrix is refused for that reason whether or not the package is installed, on every machine.test_differential_native.jlbegan withimport CompositionalDA, so the unit suite could not load at all without a package CI cannot install. Both native test files now branch oncompositional_da_available(): the boundary fuzz, the oversize refusal and the constructor checks always run; without the package the refusal is what is asserted (both methods raiseArgumentErrornamingCompositionalDA, the route answers 400invalid_inputrather than a 500 or a table no model produced); with the package developed into the environment the adapter and ANCOM-BC comparisons run unchanged. Skips announce themselves with@info, like the existing R- and glmGamPoi-gated testsets.docs/guide/web-interface.md— documentsaldex2/ancombc,mc_samples/seed, and the package caveat the guide was missing.No application logic changes: the estimators, their settings and their results are untouched.
Validation
The fork's action policy blocks
julia-actions/*(verified: the dispatch fails with "…are not allowed in hyperpolymath/MetaManifold-WebUI because all actions must be from a repository owned by hyperpolymath, created by GitHub, verified in the GitHub Marketplace…"), so upstream'sci.ymlcannot start here. The change was validated with a throwaway policy-compliant job on the same commit that reproduced the two steps that matter:Pkg.instantiate()—success(this is the step that failed in Integration harness: profiles, merge hygiene, and granular re-anchor #70). Julia 1.12.5, R installed, RCall rebuilt against it.julia --project=. test/runtests.jl test_differential test_differential_native—success: 1013 passed, 0 failed, 18 skipped (@test_skip).Native configuration boundary fuzz— 790Native input boundaries do not depend on the package— 5Native methods refuse by name when the package is absent— 8Route: native method override and input refusal— 16 (1 skipped: the adapter half)Native compositional DA adapter,ANCOM-BC adapter…— skipped, package absentThe throwaway job did not restore
renv, soglmGamPoiwas absent; those five testsets fail by contract underCI=truewhen glmGamPoi is missing (issue #37), so the job ran withCI=falseto have them skip loudly. In real CI they run —renv.lockinstalls glmGamPoi.Frontend gates were run locally on this branch:
bun install --frozen-lockfile,bun run buildandbun test src(68 pass, 1 skip, 0 fail).Not run here: the full CI job (DADA2/PR2/R suite, Agda, Codecov). Nothing in this diff touches them.
Scope
Follow-up, deliberately out of scope: activating the native methods for real. That needs either
CompositionalDAregistered in the General registry, or a[sources]git dependency — either way with the regeneratedManifest.tomlin the same change. Until thenaldex2/ancombcare wired, documented and refused by name.Lockfiles:
Manifest.tomlandrenv.lockare untouched;bun.lockis untouched.Contribution checks
validation/issue-23-native-da, notmain, soci.yml'spull_request: branches: [main]does not trigger. Merging this into Integration harness: profiles, merge hygiene, and granular re-anchor #70's branch and re-running there is the intended path.