Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

ci: draft a GitHub release with all ISPM packages on version tags - #472

Open
Wenzel wants to merge 2 commits into
intel:mainfrom
Wenzel:ci/draft-release-on-tag
Open

Wenzel wants to merge 2 commits into
intel:mainfrom
Wenzel:ci/draft-release-on-tag

Conversation

@Wenzel

@Wenzel Wenzel commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Pushing a v* tag now builds the four ISPM packages and attaches them to a draft
GitHub release. Until now they were built and uploaded by hand (for v6.2.0, two to
four weeks after the release, the Linux ones from a developer machine).

flowchart LR
    tag["push tag v6.3.0"] --> ci["Build And Test"]
    ci --> t["build_and_test<br/>(Linux, Simics 6 + 7)"]
    ci --> w["build_windows<br/>(Simics 6 + 7)"]
    ci --> d["build_dist<br/>(Linux, Simics 6 + 7)"]
    t --> r["release (tags only)"]
    w --> r
    d --> r
    r --> draft["draft release<br/>generated notes + 4 packages"]
Loading
 .github/workflows/ci.yml
+  on.push.tags: ["v*"]
   build_windows
-    artifact simics-pkg-31337-win64-simics<6|7>
+    artifact simics-pkg-31337-<6.0.185|7.113.0>-win64
   build_dist
-    Simics 6 only, artifact simics-pkg-31337-linux64
+    matrix Simics 6 + 7, artifact simics-pkg-31337-<6.0.185|7.113.0>-linux64
+  release                      # only on tags, only job with contents: write
+    rename to simics-pkg-31337-<tsffs version>-<simics base version>-<host>.ispm
+    gh release create --draft --generate-notes   (reuses an existing release)
+    gh release upload --clobber
 scripts/build.sh, .github/builder/{common.sh,Dockerfile}
+  SIMICS_VERSION=6|7 (default 6) selects the bundle: rsrc/simics-<N>.ispm
 docs/src/developer/release.md
+  bump versions, tag, review and publish the draft

The release stays a draft; publishing is manual. The release job fails if the tag
does not match [package.metadata.simics] version.

Not included: a fail-fast tag/version check at the start of the run, checksum files,
automated version bumps.

The Simics 7 jobs (Linux tests, Windows build, distribution build) also move from bundle
2025-51 (base 7.70.0) to 2026-42 (base 7.113.0):

 Simics 7, in ci.yml (Linux, Windows) and .github/builder (distribution build)
-  bundle simics-7-packages-2025-51, base 7.70.0
+  Python package 1033 extracted from bundle 2025-51, installed first
+  bundle simics-7-packages-2026-42, base 7.113.0

The 2026-42 bundle has no Python package and its base package no longer bundles Python.
Without the Python package the simics crate does not build, and the base package fails
to install in the builder image.

Evidence

  • Before: gh release view v6.2.0 lists four assets uploaded manually on Apr 17
    and Apr 28 for a Mar 30 release; build_dist produces no Simics 7 Linux package.
    After: the release step script, run locally with a stubbed gh and four fake
    artifact directories:

    GITHUB_REF_NAME=v6.2.0
      gh release create v6.2.0 --draft --generate-notes
      gh release upload v6.2.0 dist/simics-pkg-31337-6.2.0-6.0.185-linux64.ispm
                               dist/simics-pkg-31337-6.2.0-6.0.185-win64.ispm
                               dist/simics-pkg-31337-6.2.0-7.113.0-linux64.ispm
                               dist/simics-pkg-31337-6.2.0-7.113.0-win64.ispm --clobber
      exit=0                      # same names as the v6.2.0 assets
    GITHUB_REF_NAME=v6.3.0        # tag does not match the package version
      mv: cannot stat '.../simics-pkg-31337-6.3.0-linux64.ispm'
      exit=1
    
  • download_and_verify_simics with SIMICS_VERSION=7 downloads the bundle and passes
    the SHA-384 check; SIMICS_VERSION=8 is rejected.

  • Simics 7.113.0, on Linux, each in a clean install directory:

    Installed Result
    Bundle 2026-42 only cargo simics-build -r fails: Python environment not found in bundled location (.../simics-7.113.0/linux64) or through separate package discovery
    Bundle 2026-42, then Python 1033 (builder image) Base install fails: 1000-7.113.0: Error during installation: Error: Compiling python cache failed with exit code: 255
    Python 1033, then bundle 2026-42 SIMICS_VERSION=7 ./scripts/build.sh exits 0 and produces simics-pkg-31337-6.2.0-linux64.ispm

    With the Python package and bundle 2026-42, main builds and 12 integration tests pass on
    7.113.0: x86_64_magic, x86_64_magic_crash, x86_64_magic_crash_iteration_limit,
    x86_64_magic_initial_corpus, x86_64_magic_max_size_ptr, x86_64_magic_cmp_immediate,
    x86_64_magic_afl_stats, x86_64_manual, x86_64_manual_max, x86_64_magic_apitest,
    x86_64_magic_reporting, x86_64_magic_speedtest (all _latest).
    ISPM 1.8.3, the version CI uses, installs both the bundle and the extracted package.
    libsimics-common.so and libvtutils.so of 7.113.0 need glibc 2.17 and 2.14, same as
    7.70.0 and 6.0.185.

  • Not verified locally: the Windows steps (extracting the Python package with
    tar.exe, installing it with ispm.exe); the EDK2 and RISC-V integration tests on
    7.113.0; whether a package built against 7.113.0 loads on an older Simics 7. The
    Build and Test (Windows, Simics 7) job of this PR is the first run of the Windows steps.

  • Not verifiable before a tag: the release job itself, as it only runs on tags.

Merge Danger

Door: two-way

Blast Radius: CI

  • build_dist runs twice per PR now (LLVM 5 is compiled once per Simics version).
  • The Simics 7 bundle SHA-384 in common.sh is trust-on-first-use, computed from the
    Intel download; there is no published checksum to compare against.
  • A release is gated on build_and_test: a flaky test blocks the draft until the
    failed jobs are re-run. Re-running release is safe, it replaces the assets.
  • Locally, SIMICS_VERSION=6 and 7 builds write the same file name into packages/.
  • Simics 7 release packages are now built against base 7.113.0 instead of 7.70.0.
  • The Simics 7 jobs download a second bundle (2025-51, 720 MB on Linux) for its Python
    package whenever the Simics cache is cold. If Intel removes that download, the Simics 7
    jobs fail on a cache miss.

Wenzel and others added 2 commits November 19, 2026 08:59
- Run the Build And Test workflow on v* tags and add a release job that
  uploads the Linux and Windows packages for SIMICS 6 and 7 to a draft release.
- Build the Linux distribution package for SIMICS 7 as well: the builder
  selects the SIMICS bundle with SIMICS_VERSION (default 6).
- Name the package artifacts after the SIMICS base version.
- Document the release steps.
The Simics 7 jobs (Linux tests, Windows build, distribution build) move from bundle 2025-51 (base 7.70.0) to 2026-42 (base 7.113.0).

The 2026-42 bundle has no Python package (1033) and its base package no longer bundles Python, so the simics crate cannot find a Python to build against. The Python package is extracted from the 2025-51 bundle and installed before the new bundle: the base package compiles its Python cache at install time and needs it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant