GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI Refactor Meta-Issue · Issue #1807 · LDMX-Software/ldmx-sw

CI Refactor Meta-Issue #1807

New issue
Copy link
New issue
Copy link
Open
Open
CI Refactor Meta-Issue#1807
Copy link
Labels
github_actionsPull requests that update GitHub Actions code

Description

@tomeichlersmith
tomeichlersmith
opened on Aug 11, 2025
Issue body actions

I am writing this for long-term notes on how to cleanup the CI and make it less error prone. The general goal would be to make it closer to something folks can run locally to make it easier to replicate the CI results and also make it easier to test-run the CI locally to quicken development cycles when adding new CI workflows.

Drop GitHub "Local" Actions

These are the things stored in .github/actions/, and I want to drop them because they are difficult to replicate locally without other tooling. I would be more in favor of keeping the scripts in .github (or maybe a ci directory for extra clarity) and running then scripts from just. The main stumbling block here is that the scripts in .github/actions/ rely on .github/actions/common.sh to define some helper shell functions.

Drop compare.py

Two things are stopping us from using ComparePlots in CI:

  1. Letting the file determine which plots are made - we can use keys from uproot.File to loop through all the objects and retrieve the list of histograms.
  2. KS Test - we can use SciPy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstest.html

Make sure to fail the CI in the case of missing histograms ("gold" has X but test does not).

Drop Tar-Ball Build Artifact

This is almost identical to manually creating a layer of a container image. I think our general workflow should be

  1. Test compile ldmx-sw with strict static analysis
  2. Build ldmx-sw into an image
  3. Tests where we run ldmx-sw use the built image

The benefit of this workflow is that the intermediate image can benefit from the extra container tooling that is built around containers (caching, push/pulling, etc.). Steps (1) and (2) could happen at the same time, I just put them in sequence here to emphasize that Step 2 is only necessary if we are running Step 3. Step 3 then does not need to download artifacts and instead would just run the built image with denv.

The intermediate ldmx-sw builds would go into a new image registry. I'm thinking something named like ldmx/build to distinguish it from the front-facing images used for development or production. We could also look at hosting the ldmx-sw build images on GitHub's Container Registry (ghcr) to potentially improve push/pull rates on the runners themselves.

This could also go along with other refactoring of the image layer stack. Rough outline below since I'm dumping my notes here.

Image Base Comments
ldmx/base ubuntu necessary dependencies (ROOT, Geant4,...)
ldmx/dev ldmx/base additional dev tooling (clang-tidy, etc...)
ldmx/build ldmx/dev debug build of ldmx-sw
ldmx/pro ldmx/base release build of ldmx-sw

We'd probably want to look at building an arm platform version of the ldmx/pro image as well since the prevalence of ARM-Macs is growing. In the short/medium term, you can still build production images yourself locally on your ARM (or any platform supported by Docker/Podman) computer with #1438 (comment)

Using more gh

Instead of one-off actions, we can use GitHub's CLI that is installed on their runners. This is a tool that is more easy to test compared to the one-off actions and is maintained by GitHub themselves.
For example, we can use gh to add a comment about the failing samples in PR Validation or create the pre-release with the larger validation samples (although we havne't used the new-pre-release action in a long time).

Activity

  1. tomeichlersmith
    added
    github_actionsPull requests that update GitHub Actions code
    on Aug 11, 2025
  2. tomeichlersmith commented on May 26, 2026

    @tomeichlersmith
    tomeichlersmith
    on May 26, 2026
    MemberAuthor
    More actions

    #2061 did the first part of dropping github "local" actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actionsPull requests that update GitHub Actions code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.