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

test(python-discovery): per-row validation scripts, CI job, Simics 7 CI on 2026-42 - #523

Open
Wenzel wants to merge 4 commits into
mainfrom
python-discovery-validation
Open

Wenzel wants to merge 4 commits into
mainfrom
python-discovery-validation

Conversation

@Wenzel

@Wenzel Wenzel commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Runs the Python-discovery validation matrix as one script per row, locally and in CI.

scripts/python-discovery/
├── common.sh      # host side: pinned ubuntu digest, empty env, read-only mounts, image removal
├── inner.sh       # in-container: install, preconditions, checks 1-7
├── test.sh        # self-test, no Docker or Simics (parsers, --dry-run of all rows)
└── S6 E7 P7-old P7-new H7-310 H7-312 M1 M2 N0 O1 .sh
 .github/workflows/ci.yml
-  Simics 7 Linux entry on the 2025-51 bundle
+  Simics 7 Linux entry on the 2026-42 bundle, host Python
+  python_discovery job: S6, P7-old, H7-310, H7-312, N0 on every PR
  • Each row runs in its own container with only the files it needs mounted read-only.
  • --bindings DIR patches the simics-* crates with a simulator-bindings checkout, to test unreleased fixes.
  • Check 7 samples /proc/*/maps during the tests and fails if any process maps more than one libpython.

Evidence

  • Before: the first real runs surfaced these harness bugs (all fixed here):

    • host rows need python3-venv;
    • Base 7.113 needs a Python present at install time (N0 installs Python first, then purges it);
    • ispm packages -i a b c installed only the first file, so files install one per call, 1033 first;
    • the package-list parser failed on names containing digits (QSP-x86);
    • the x86_64 test needs 1030, 2096 and 8112 installed, and the UEFI test artifacts built;
    • Simics 6 and 7.20 print no Python version: line in ./simics -v.

    After: H7-310, H7-312, O1, P7-new, M1, M2 and E7 pass all seven checks, and N0 fails with only the new error. S6 also passes, but from individual packages.

  • scripts/python-discovery/test.sh passes. Shellcheck was not installed, so that step was skipped.

Not validated:

  • P7-old and the real S6 bundle install.
  • Windows.
  • The ci.yml job itself, which has only been YAML-parsed, never run on a runner.
  • The 2026-42 bundle URL in ci.yml.
  • The ispm output format and flags in the scripts, which are inferred from the runs above.
  • The PR 472 workaround. No separate code was found, only the 2025-51 bundle entry.
  • The Windows CI entry, which still uses 7.70.0.

Merge Danger

Door: two-way

Blast Radius: CI

  • The new python_discovery job runs on every PR and builds a container image per row, which is slow and downloads the bundles.
  • The Linux Simics 7 CI entry moves from Base 7.70.0 to 7.113.0.
  • The container pins Rust 1.90.0 and installs cargo-simics-build unpinned.
  • Cargo.toml carries a temporary [patch.crates-io] pointing the simics-* crates at the python-discovery-resolver branch of fix(python-utils): ask Simics which Python it runs, instead of searching for one simulator-bindings#148, so CI tests the resolver fix. Remove it once that PR is merged and released.

🤖 Generated with Claude Code

Wenzel and others added 4 commits November 30, 2026 08:45
…026-42 bundle

Adds scripts/python-discovery/ with one script per validation row (S6, E7, P7-old,
P7-new, H7-310, H7-312, M1, M2, N0, O1) sharing common.sh (isolated container) and
inner.sh (preconditions and checks 1-7), plus a dry-run self-test. Adds the
python_discovery CI job for the public rows and moves the Simics 7 Linux entry to the
2026-42 bundle with host Python.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…clearly when no source line is logged

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Test the unreleased resolver with --bindings, install python3-venv in host-Python rows, install packages one per call (1033 first), install QSP/Crypto packages for the magic test, parse names with digits, build the UEFI artifacts in the container, and install Python only for N0's Base install.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eased

Patch the simics-* crates with intel/simulator-bindings#148, and fix the shellcheck findings in the python-discovery scripts.

Co-Authored-By: Claude Sonnet 5.5 <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