Repository navigation
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pushing a
v*tag now builds the four ISPM packages and attaches them to a draftGitHub 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"]The release stays a draft; publishing is manual. The
releasejob fails if the tagdoes 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):
The 2026-42 bundle has no Python package and its base package no longer bundles Python.
Without the Python package the
simicscrate does not build, and the base package failsto install in the builder image.
Evidence
Before:
gh release view v6.2.0lists four assets uploaded manually on Apr 17and Apr 28 for a Mar 30 release;
build_distproduces no Simics 7 Linux package.After: the
releasestep script, run locally with a stubbedghand four fakeartifact directories:
download_and_verify_simicswithSIMICS_VERSION=7downloads the bundle and passesthe SHA-384 check;
SIMICS_VERSION=8is rejected.Simics 7.113.0, on Linux, each in a clean install directory:
cargo simics-build -rfails:Python environment not found in bundled location (.../simics-7.113.0/linux64) or through separate package discovery1000-7.113.0: Error during installation: Error: Compiling python cache failed with exit code: 255SIMICS_VERSION=7 ./scripts/build.shexits 0 and producessimics-pkg-31337-6.2.0-linux64.ispmWith the Python package and bundle 2026-42,
mainbuilds and 12 integration tests pass on7.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.soandlibvtutils.soof 7.113.0 need glibc 2.17 and 2.14, same as7.70.0 and 6.0.185.
Not verified locally: the Windows steps (extracting the Python package with
tar.exe, installing it withispm.exe); the EDK2 and RISC-V integration tests on7.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
releasejob itself, as it only runs on tags.Merge Danger
Door: two-way
Blast Radius: CI
build_distruns twice per PR now (LLVM 5 is compiled once per Simics version).common.shis trust-on-first-use, computed from theIntel download; there is no published checksum to compare against.
build_and_test: a flaky test blocks the draft until thefailed jobs are re-run. Re-running
releaseis safe, it replaces the assets.SIMICS_VERSION=6and7builds write the same file name intopackages/.package whenever the Simics cache is cold. If Intel removes that download, the Simics 7
jobs fail on a cache miss.