Skip to content

fix(ci): root-cause three workflow failures blocking Dependabot PRs#6

Merged
hyperpolymath merged 6 commits into
mainfrom
fix/ci-julia-registry-and-workflow-cleanup
May 14, 2026
Merged

fix(ci): root-cause three workflow failures blocking Dependabot PRs#6
hyperpolymath merged 6 commits into
mainfrom
fix/ci-julia-registry-and-workflow-cleanup

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Three independent workflow issues were combining to red every Dependabot PR (e.g. #5). All three fixed in this PR:

1. `ci.yml` — Julia CI: hyperpolymath registry not installed

`Pkg.instantiate()` failed with `expected package Cliodynamics [...] to be registered`. The project's `[deps]` includes `Cliodynamics`, `Causals`, `ZeroProb` — all hyperpolymath-internal packages registered in hyperpolymath/julia-ecosystem's `registries/General/` subdir, not the public Julia General registry. Julia's `Pkg.Registry.add` doesn't support a subdir parameter, so we clone the meta-repo and copy the registry into `~/.julia/registries/HyperpolymathGeneral` manually before `Pkg.instantiate()`. Also force-add upstream Julia General as a fallback.

2. `codeql.yml` — wrong language matrix

Language was pinned to `javascript-typescript` on a Julia-only repo, so CodeQL exited "configuration error" every run. Switched to `actions`, matching the fix already shipped to JuliaKids.jl#7 and PRComms.jl#7.

3. `hypatia-scan.yml` — broken working-directory expression

Used `working-directory: ${{ env.HOME }}/hypatia` which evaluated to `/hypatia` (env.HOME is not a GHA context). Replaced with the current canonical workflow from hyperpolymath/hypatia.

Test plan

🤖 Generated with Claude Code

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) May 14, 2026 09:48
hyperpolymath and others added 6 commits May 14, 2026 13:45
1. ci.yml — Pkg.instantiate() failed with `expected package
   Cliodynamics [...] to be registered`. The project depends on
   hyperpolymath-internal packages (Cliodynamics, Causals, ZeroProb)
   that live in hyperpolymath/julia-ecosystem's General registry, not
   the public Julia General. Add a step that clones the meta-repo and
   copies registries/General into ~/.julia/registries/HyperpolymathGeneral
   before instantiate. (Pkg can't add a registry from a subdir directly,
   so we install it manually.) Also force-add upstream General as a
   fallback for cold caches.

2. codeql.yml — language matrix was `javascript-typescript` on a
   Julia-only repo; CodeQL exited with a configuration error every
   run. Switch to `actions` (matches the fix already shipped to
   JuliaKids.jl#7 and PRComms.jl#7 in this org).

3. hypatia-scan.yml — used `working-directory: ${{ env.HOME }}/hypatia`
   which evaluated to `/hypatia` (env.HOME is not a GHA context — only
   shell $HOME is). Replaced with the current canonical workflow from
   hyperpolymath/hypatia which uses `cd "$HOME/hypatia"` inside the run
   script and builds a fresh escript when needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… registry

Julia 1.11 ignores raw directory drops into ~/.julia/registries (it uses
the compressed-registry format with <name>.toml + tarball). Switch to
the documented Pkg.Registry.add(RegistrySpec(path=…)) approach. Init the
subdir as its own git repo so Pkg treats it as a bare-clone source.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The 'General' registry at hyperpolymath/julia-ecosystem/registries/General
is just a mirror of upstream JuliaRegistries/General — it has the same
name+UUID+repo URL and does NOT contain Cliodynamics, Causals, or
ZeroProb. So pointing Pkg at it changes nothing; the path-based add we
had collapsed into the existing General registry on dedup.

Switch to direct Pkg.add(url=…) for each internal dep. The packages
each have a Project.toml with the matching name+UUID, so Pkg resolves
them cleanly without registry support.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adding Cliodynamics/Causals/ZeroProb one-at-a-time failed: each Pkg.add
re-resolves the whole project, and on call #1 the other two unregistered
deps still cause check_registered to error out before the URL we just
supplied is considered. Bundling all three PackageSpecs into one
Pkg.add gives the resolver every git source up-front.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…roProb)

Causals and ZeroProb both list AcceleratorGate in their [deps].
AcceleratorGate isn't registered either, so without its URL the
resolver aborts with 'Unsatisfiable requirements detected'.

Note: this still depends on hyperpolymath/Causals.jl#4 landing first
(removes 9 fictional hardware-accelerator weakdeps with placeholder
UUIDs that no resolver can find).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
src/parsers.jl line 12 does `using StringDistances` but the package was
missing from Project.toml [deps]. Julia 1.11 precompile failed with:

    ArgumentError: Package InvestigativeJournalist does not have
    StringDistances in its dependencies

StringDistances is a registered package (uuid 88034a9c-...). Add it to
[deps] and constrain to compat = "0.11" (current major).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath force-pushed the fix/ci-julia-registry-and-workflow-cleanup branch from d626e34 to 6056a72 Compare May 14, 2026 13:29
@hyperpolymath
hyperpolymath merged commit c7b7fcb into main May 14, 2026
15 of 16 checks passed
@hyperpolymath
hyperpolymath deleted the fix/ci-julia-registry-and-workflow-cleanup branch May 14, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants