Skip to content

docs(examples): pin the warehouse notebook to stickler-eval 1.1.0 - #734

Open
digalaviz wants to merge 2 commits into
awslabs:devfrom
digalaviz:examples/pin-stickler-1.1.0
Open

digalaviz wants to merge 2 commits into
awslabs:devfrom
digalaviz:examples/pin-stickler-1.1.0

Conversation

@digalaviz

@digalaviz digalaviz commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

tl;dr for humans

The warehouse notebook from #644 installed stickler from a git commit, because required_match wasn't on PyPI yet. 1.1.0 is out, so it now installs stickler-eval==1.1.0, plus munkres<2. That second pin gives the same results on every platform: munkres 3.x breaks ties differently on each one (#736, fixed in the library by #737). Two cells of Table 1 change by 0.003, and nothing the prose cites changes.

Closes #736


for agents

  • intent: follow-up to docs(examples): add a warehouse 3D detection regression notebook #644, which said to switch the pin once 1.1.0 shipped, and the notebook side of warehouse notebook: results hash differs on macOS #736.

  • behavior:

    • install: stickler-eval==1.1.0 and munkres>=1.1.4,<2. The second pin is needed until a release carries the cap from fix(deps): cap munkres below 2 #737.
    • recorded hash: the old 8bf2113d came from munkres 3.0.0's pure-Python fallback, which only Linux arm64 without a compiler gets. macOS and Linux x86_64 got a different value. The new hash is bd73215e.
    • recorded outputs: only Table 1 (gate_table, cell-47) changes. person_drop's near-vehicle recall goes from 0.974 to 0.977 under default, and from 0.972 to 0.975 under strict. All other printed values, the charts and the prose are unchanged.
  • code:

    • examples/notebooks/Warehouse_3D_Detection_Regression.ipynb: the install line, one sentence on the munkres pin, EXPECTED_RESULTS_SHA256, and the recorded outputs of cell-47 and cell-53.
    • examples/README.md: the same install line.
  • commits:

    • ee484baa docs(examples): pin the warehouse notebook to stickler-eval 1.1.0
    • docs(examples): record the warehouse notebook with munkres 1.1.4

    Both are docs, no semver impact.

  • verification: I executed the notebook end to end with jupyter nbconvert --execute and the exact install line, on python:3.12-slim (Linux arm64) and on macOS arm64. Every assert passes on both, with results sha256 bd73215ebe9ac6e5d23b7bb6cbb0ba9fa1466e70f82928ef39612c161d6225be. A faster probe of the slice that differed gives identical per-frame assignments on Linux amd64 as well.

  • not covered: I didn't run the full notebook on Linux amd64, because emulation is slow. Only the probe ran there.

- 1.1.0 is on PyPI, so the install no longer needs the git commit
- executed end to end with stickler-eval 1.1.0 in a clean
  python:3.12-slim container: every assert passes, results sha256
  unchanged (8bf2113d)
- the setup output now prints stickler version 1.1.0
@digalaviz
digalaviz requested a review from sromoam as a code owner December 4, 2026 21:51
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Security Scan Results

ASH Security Scan Report

  • Report generated: 2026-12-05T03:34:49+00:00
  • Time since scan: 4 minutes

Scan Metadata

  • Project: ASH
  • Scan executed: 2026-12-05T03:30:35+00:00
  • ASH version: 3.1.2

Summary

Scanner Results

The table below shows findings by scanner, with status based on severity thresholds and dependencies:

  • Severity levels:
    • Suppressed (S): Findings that have been explicitly suppressed and don't affect scanner status
    • Critical (C): Highest severity findings that require immediate attention
    • High (H): Serious findings that should be addressed soon
    • Medium (M): Moderate risk findings
    • Low (L): Lower risk findings
    • Info (I): Informational findings with minimal risk
  • Duration (Time): Time taken by the scanner to complete its execution
  • Actionable: Number of findings at or above the threshold severity level that require attention
  • Result:
    • PASSED = No findings at or above threshold
    • FAILED = Findings at or above threshold
    • MISSING = Required dependencies not available
    • SKIPPED = Scanner explicitly disabled
    • ERROR = Scanner execution error
  • Threshold: The minimum severity level that will cause a scanner to fail
    • Thresholds: ALL, LOW, MEDIUM, HIGH, CRITICAL
    • Source: Values in parentheses indicate where the threshold is set:
      • global (global_settings section in the ASH_CONFIG used)
      • config (scanner config section in the ASH_CONFIG used)
      • scanner (default configuration in the plugin, if explicitly set)
  • Statistics calculation:
    • All statistics are calculated from the final aggregated SARIF report
    • Suppressed findings are counted separately and do not contribute to actionable findings
    • Scanner status is determined by comparing actionable findings to the threshold
Scanner Suppressed Critical High Medium Low Info Actionable Result Threshold
bandit 0 0 0 0 8237 0 0 PASSED MEDIUM (global)
cdk-nag 0 0 0 0 0 0 0 PASSED MEDIUM (global)
cfn-nag 0 0 0 0 0 0 0 MISSING MEDIUM (global)
checkov 0 0 0 0 0 0 0 PASSED MEDIUM (global)
detect-secrets 0 0 0 0 0 0 0 PASSED MEDIUM (global)
grype 0 0 0 0 0 0 0 MISSING MEDIUM (global)
npm-audit 0 0 0 0 0 0 0 PASSED MEDIUM (global)
opengrep 0 0 0 0 0 0 0 MISSING MEDIUM (global)
semgrep 7 0 0 0 0 0 0 PASSED MEDIUM (global)
syft 0 0 0 0 0 0 0 MISSING MEDIUM (global)

Report generated by Automated Security Helper (ASH) at 2026-12-05T03:34:50+00:00

@digalaviz digalaviz added this to the 1.1.1 milestone Dec 4, 2026
- install munkres<2 beside stickler-eval 1.1.0, the solver stickler
  tests; munkres 3.x picks a different tied assignment per platform
- the recorded hash came from munkres 3.0.0's python fallback, which
  only linux arm64 without a compiler gets
- with munkres 1.1.4 only person_drop's near-vehicle recall moves,
  0.974 to 0.977 (default) and 0.972 to 0.975 (strict); the prose
  does not cite it
- executed end to end on python:3.12-slim (linux arm64) and macos
  arm64: every assert passes, results sha256 bd73215e

@vawsgit vawsgit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM!

Verified at head 685460b1787a7a5a211fbde5ebd3184cc344102b (macOS arm64, Python 3.12, fresh venv, the exact install line from the notebook: stickler-eval==1.1.0, munkres>=1.1.4,<2, huggingface_hub>=0.25, matplotlib>=3.8; installed munkres 1.1.4).

  • Executed end to end. jupyter nbconvert --execute ran all cells with zero error outputs, so every assert passes. Output went to a scratch path; the tracked file was not touched.
  • Hash. The run prints results sha256 bd73215ebe9ac6e5d23b7bb6cbb0ba9fa1466e70f82928ef39612c161d6225be, equal to EXPECTED_RESULTS_SHA256. That matches the author's Linux arm64 value, so macOS arm64 agrees.
  • Recorded outputs match execution. Table 1 (cell-47): person_drop near-vehicle recall is 0.977 (default) and 0.975 (strict), was 0.974 and 0.972. All other tables and text outputs match. The only differences are run-dependent values (file path, elapsed seconds, peak memory). The recorded stickler version line is 1.1.0.
  • No stale numbers. The remaining 0.974 and 0.972 in cell-33 and the cell-35 prose are overall cm_recall for person_drop, a different metric, and are correct. No 8bf2113d, 545da9f or git+https references remain.
  • Install line is identical in examples/README.md:125 and notebook cell-02.
  • Diff hygiene. Valid JSON (nbformat 4.5, 59 cells). Only cell-02, cell-06, cell-47 and cell-53 differ from dev; execution counts, cell ids and metadata are unchanged.
  • Pin. stickler-eval 1.1.0 is on PyPI, not yanked, and has ComparableField(required_match=...). It declares only munkres>=1.1.4 with no cap, and munkres 2.0.0 and 3.0.0 exist, so the <2 pin is needed until a release carries the cap from #737.
  • Staleness and CI. 7 commits behind dev, none touching examples/; no conflict. All CI checks are green, and no workflow executes notebooks.
  • Not run: Linux amd64 (author probed it only).

Non-blocking (LOW, optional):

  1. The PR body says "the charts ... are unchanged", but Figure 1 (examples/notebooks/img/warehouse_overview.png) is not. Comparing the PNG from my executed run with the checked-in one pixel by pixel, 448 pixels differ, all in one 77x21 px box (x 380-456, y 137-157). The person_drop near-vehicle recall bar labels read 0.97/0.97 in the checked-in file and 0.98/0.98 in a fresh run, the rounding of 0.974→0.977 and 0.972→0.975. The other three PNGs are bit-identical. examples/README.md:126 says to re-export the charts when the results hash changes. Re-export warehouse_overview.png in this PR or a follow-up, or correct the PR text.
  2. Closes #736 closes the issue on merge, while #737 (the library-side cap that fixes the root cause) is still open. Fine if #736 tracks only the notebook.

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.

warehouse notebook: results hash differs on macOS

2 participants