Skip to content

Build and release infrastructure updates - #508

Merged
jfpanisset merged 18 commits into
AcademySoftwareFoundation:mainfrom
jfpanisset:conan-dependencies
Nov 28, 2026
Merged

jfpanisset merged 18 commits into
AcademySoftwareFoundation:mainfrom
jfpanisset:conan-dependencies

Conversation

@jfpanisset

Copy link
Copy Markdown
Contributor

Build and release infrastructure updates

  • aswfdocker uses Conan's dependency graph to determine build order instead of hand-maintained build levels in versions.yaml
    • package groups collapsed to common, base1, base2, base3 and vfx, image groups vfx1-vfx3 merged into vfx
    • packages with up-to-date builds are skipped, --force-rebuild forces a rebuild (bypassing the BuildKit cache), --target-to / --target-from select part of a group
    • a package is rebuilt whenever any of its dependencies changes (version, recipe or patches), transitively
    • never use package builds from Conan Center Index, glu recipe vendored
  • Single version per VFX Platform year for every image: ci-common:2027-clang22 instead of ci-common:7-clang22,
    ci-common and ci-baseos-gl-conan keep additional legacy tags for 2023-2027
    • ci-packages removed from versions.yaml, 2019-2022 and CentOS 7 support removed
    • Conan packages built in per-release channels (e.g. vfx2027_4), so a new release (minor version) never reuses the previous release's packages
  • Images include a CycloneDX SBOM of their Conan packages in /usr/local/aswf/sbom.cdx.json, attached to each image's GitHub release
    • release builds record the git SHA each Conan package was built from
  • Release process moved to GitHub Actions workflows started by aswfdocker release, no more GitHub web UI or gh CLI needed
    • release-packages.yml builds and uploads Conan packages to Artifactory, without creating GitHub releases
    • release-images.yml builds and pushes images to Docker Hub, publishing draft GitHub releases created by aswfdocker release
    • aswfdocker release --full-release (release-all.yml) releases every package and image of the given years in dependency order
    • fine-grained GitHub token with minimal permissions supported and documented
  • GitHub Actions hardening
    • Artifactory uploads and Docker Hub pushes only allowed from GitHub Actions, from commits on a branch of the repository
    • secrets scoped to the steps using them, minimal workflow permissions, no dev dependencies in jobs holding release credentials
    • zizmor security audit and jactionlint correctness checks added to pre-commit
    • GitHub runner disk cleanup updated for Ubuntu 26.04.1, and only run when needed
  • Developer documentation updated, including adding a new Conan recipe

Closes #386, #275, #310, #498, #482

Assisted-by: Claude/Opus 5.5

Step 1 of using Conan to determine build order based
on declared dependencies. buildorder.py runs as a first
pass to determine the set of packages and order in which they
need to be built.

Also tweaks to Conan configuration to correctly force
packages to get rebuild when their requirements are rebuilt,
and never look for binary packages from Conan Center Index.

Assisted-by: Claude Code / Opus 5.5

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
For local builds, Conan remotes are no longer considered,
only the local Conan build cache.

When building on GitHub Actions, the aswf / aswftesting
Artifactory server is consired.

Assisted-by: Claude Code / Opus 5.5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
aswfdocker build no uses the dependency resolution step to figure out
order to build packages in a group.

Collapse into fewer groups, getting rid of dependency levels.

Get rid of unmaintained 2019-2022 years and centos7 related code.

Assisted-by: Claude Code / Opus 5.5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
A random valued ARG is used to signal to docker BuildKit
not to reuse a cached layer when we need to force
a rebuild.

Assisted-by: Claude Code / Opus 5.5

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Leverage Conan to generate CycloneDX SBOMs in our container images.
For relase builds the SBOMs will include the git SHA against which
a Conan package was built. This SBOM will also be attached to the
git release for those images (individual Conan packages will
no longer have corresponding GitHub release entries).

Assisted-by: Claude Code / Opus 5.5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
License strings should be SPDX compliant as they are propagated
into the CycloneDX SBOMs.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
We no longer have a separate "common" version (3,4,5,6,7), instead
we have a single version per year since we haven't shared a ci_common
version between vfx years for a long time.

Also don't allow uploading to Artifactory or Docker Hub from local
builds, only from GitHub Actions. We don't have access to the secrets
anyway.

Assisted-by: Claud Code / Opus 5.5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Conan packages are now versionned with explicit minor version to avoid
accidental sharing between (minor version) releases.

vfx1-vfx2-vfx3 images are now a single group, vfx, since
aswfdocker takes care of automatically versioning packages / images
that need to be built per clang version.

Assisted-by: Claude Code / Opus 5.5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Conan packages are now released by the new release-packages.yml
workflow, which `aswfdocker release -t PACKAGE` starts directly via
the GitHub API: no GitHub release or tag is created. release.yml now
only releases images.

GitHub Actions hardening:
- Release workflows refuse commits not on a branch of the repository
  (shared check-commit.yml reusable workflow).
- Secrets are scoped to the steps using them, never expanded into
  scripts or passed on command lines; only the conan upload step gets
  the Artifactory credentials, as downloads are anonymous.
- All workflows set minimal permissions and persist-credentials: false.
- zizmor workflow audit added to pre-commit.
- SonarCloud analysis is skipped when no SONAR_TOKEN is available, and
  forks can point it at their own project.

Assisted-by: Claude Code / Opus 5.5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Images are now released by the new release-images.yml workflow, which
`aswfdocker release -t IMAGE` starts directly via the GitHub API,
replacing release.yml. The CLI first creates a draft GitHub release
of each image, attributed to the person releasing; once the images are
pushed, the workflow publishes the drafts (`aswfdocker publishreleases`,
GitHub Actions only), creating their tags. Earlier releases of the same
images are only replaced when the new ones are published.

`aswfdocker release --full-release -v <years|all>` starts the new
release-all.yml workflow, releasing every Conan package and image of
the given years in dependency order, one job per year. Re-running
failed jobs resumes the release.

GitHub Actions:
- check-commit.yml becomes check-release.yml, also checking the
  release inputs and providing the versions for the per-year jobs.
- New setup-aswfdocker composite action shared by every job running
  aswfdocker, referenced with the $/ self-repository syntax so it
  comes from the workflow's own commit. Dev dependencies are only
  installed in the jobs that need them, never in the jobs holding
  release credentials.
- zizmor also audits .github/actions.

Assisted-by: Claude Code / Opus 5.5

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Add jactionlint (with shellcheck for run: scripts) to the pre-commit
hooks alongside zizmor, to catch invalid workflows and actions before
GitHub rejects them. jactionlint is an actively maintained fork of
actionlint which supports the $/ self-repository syntax and checks
the inputs and secrets of reusable workflow calls. Only its
correctness profile is used, as zizmor audits security.

Assisted-by: Claude Code / Opus 5.5

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
ubuntu-latest is now based on Ubuntu 26.04.1, update disk cleanup to reflect this.
We've seen much larger amount of free disk space even on free runners, so only
run the cleanup if needed, that will save startup time.

Assisted-by: Claude Code / Opus 5.5

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Attach each image's SBOM to its GitHub release, and record build
provenance in the SBOMs of images built from Artifactory packages.

conan install never downloads package metadata, so images built from
remote packages had SBOMs without the aswf_provenance.json written by
hook_aswf_provenance. A new `conan aswf-download-metadata` custom
command downloads the packages a graph would download, with their
metadata, before conan install runs. It filters the graph itself, as
the package list of `conan list --graph` also holds the packages conan
install skips, such as tool requirements.

release-images.yml exports the SBOM of each image it built (new
`aswfdocker exportsboms`) as a workflow artifact. Its record job then
attaches them to the draft releases before publishing them
(`publishreleases --sbom-dir`), as immutable releases require. A
release without a draft now gets one created first, so it also has
its SBOM attached before it is published.

The image Dockerfile template's conan install RUN moves into
scripts/common/install_conan_packages.sh, bind-mounted rather than
copied into the image. Conan's download cache is now a cache mount,
instead of being deleted after the install.

Assisted-by: Claude Code / Opus 5.5

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
- remove obsolete information
- update some sections for new tooling

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Update CHANGELOG.md, ready for PR.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
dependabot upgraded to pylint 4, address new warnings.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Although fine grained tokens are desirable, they need approval
from AcademySoftwareFoundation GitHub organization owners (LF).

Also fix merge issue in log4cplus recipe.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
@jfpanisset
jfpanisset merged commit c056c99 into AcademySoftwareFoundation:main Nov 28, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant