Skip to content

fix(ci): refresh apt cache before installing system deps#14

Closed
estebanzimanyi wants to merge 1 commit into
mainfrom
fix/ci-apt-update
Closed

fix(ci): refresh apt cache before installing system deps#14
estebanzimanyi wants to merge 1 commit into
mainfrom
fix/ci-apt-update

Conversation

@estebanzimanyi
Copy link
Copy Markdown
Member

The workflow installs GEOS / PROJ / JSON-C from apt without first running `apt-get update`, so the GitHub Actions runner re-uses a stale cache from its base image. When Azure's apt mirror retires an older patch version (e.g. `libcurl4-gnutls-dev 8.5.0-2ubuntu10.8`), the install step 404s and the build fails with exit code 100.

This is currently breaking every JMEOS CI run including the doc-only PR #13.

Fix

  • Consolidate the three separate `apt-get install` steps into one
  • Run `apt-get update -qq` first
  • Add `--no-install-recommends` so unrelated packages aren't pulled in

Test plan

…-dev

The workflow installs GEOS / PROJ / JSON-C from apt without first
running 'apt-get update', so the GitHub Actions runner re-uses a
stale cache from its base image and 404s when Azure's apt mirror
retires older patch versions.

Two changes:

1. Add 'apt-get update -qq' and consolidate the three separate
   'apt-get install' steps into one with --no-install-recommends.

2. Add libgsl-dev. MobilityDB recently started requiring GSL (GNU
   Scientific Library); without it cmake fails with 'Could NOT find
   GSL' during the JMEOS workflow's MobilityDB build step.

This is a CI infrastructure fix only; it doesn't change JMEOS
itself.
@GaspardMerten
Copy link
Copy Markdown
Collaborator

Already done in #9

estebanzimanyi added a commit to estebanzimanyi/JMEOS that referenced this pull request May 14, 2026
The Install PROJ step has been failing for the last two runs because
apt-get install pulls from a stale package list that points at the
prior libcurl4-gnutls-dev .deb, which the mirror has since rotated
out (404).  Adding apt-get update first re-fetches the index against
the live mirror state, mirroring the fix that closed PR MobilityDB#14, and the
-y flag on the dependent installs keeps them non-interactive.
estebanzimanyi added a commit to estebanzimanyi/JMEOS that referenced this pull request May 14, 2026
MobilityDB's top-level CMakeLists.txt calls find_package(GSL) at line
274 and the CI runner's stock package set ships none of GSL_INCLUDE_DIR
/ GSL_LIBRARY / GSL_CBLAS_LIBRARY.  Adding libgsl-dev to the apt steps
mirrors the closed PR MobilityDB#14 fix that addressed the same gap and lets the
Install MobilityDB step proceed to the build phase.
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