Skip to content

Finalize perf-smoke staging gate - #6701

Merged
fatimaanes merged 2 commits into
isaac-sim:perf-smoke/develop-stagingfrom
NVIDIA-Omniverse:neilm/perf-smoke-final-staging-fixes
Jul 24, 2026
Merged

fatimaanes merged 2 commits into
isaac-sim:perf-smoke/develop-stagingfrom
NVIDIA-Omniverse:neilm/perf-smoke-final-staging-fixes

Conversation

@Neil4561

Copy link
Copy Markdown

Description

Finalizes the focused perf-smoke follow-ups on perf-smoke/develop-staging before the production replay onto current develop.

  • Isolates Warp JIT compilation inside the container for the two camera backends that still hit cross-user cache permissions.
  • Preserves equal FPS measurements as distinct samples instead of accidentally deduplicating them.
  • Verifies newly seeded baselines against the exact target branch, current-run sample IDs, runtime fingerprint, and commit ancestry.
  • Seeds the full task/backend matrix when a new image era is published.
  • Replaces the technical-only sticky comment with an overall result, plain-language guidance, a compact reviewer table, and collapsed diagnostics.

After squash merge, the staging branch's push-triggered L40S gate and full-matrix seeder will provide the final end-to-end validation. The later production PR will replay this tested gate onto current develop and include #6474's benchmark timing semantics.

No required dependencies are added.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Test plan

  • tools/perf_smoke_test/test: 62 passed
  • tools/perf_smoke_test/validate_tasks.py
  • GitHub workflow YAML syntax validation
  • Full pre-commit suite
  • Regression tests fail under the old sample-deduplication and verifier behavior
  • Post-merge L40S staging gate and full-matrix seeder

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks
  • My changes generate no new warnings
  • I have added tests that prove the fixes work
  • No public API documentation or package changelog fragment is required
  • Contributor affiliation is represented by NVIDIA Corporation & Affiliates

Make post-merge baseline recovery verify the exact samples engineers will
use, preserve repeated measurements, and cover the full matrix. Improve
staging reliability and make sticky PR verdicts easier to understand.
@Neil4561
Neil4561 requested a review from kellyguo11 as a code owner July 23, 2026 22:52
@github-actions github-actions Bot added bug Something isn't working infrastructure labels Jul 23, 2026
@greptile-apps

greptile-apps Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR finalizes the perf-smoke/develop-staging gate with five focused fixes: container-local JIT caches for camera backends that hit cross-user permission failures on host-mounted volumes, a sample_index field added to the sample ID hash to prevent identical-FPS measurements from deduplicating, a strengthened baseline verifier that checks target-branch match and current-run sample IDs in addition to ancestry, full task/backend matrix seeding on era roll, and a redesigned PR sticky comment that leads with a plain-language verdict and collapses technical diagnostics.

  • JIT cache isolation (seed_baselines.py): _CONTAINER_LOCAL_JIT_CACHE_BUCKETS hardcodes the two Shadow Camera / Direct backends that failed on the host mount; _docker_run_benchmark now accepts jit_cache=None and creates ephemeral /tmp/jit-cache/{warp,nv} directories inside the container instead.
  • Deduplication fix (baseline_manager.py): sample_index (0-based counter within a seeding run) is included in _stable_sample_id's hash, so repeated runs that happen to report the same FPS value are stored as distinct samples.
  • Verifier hardening (verify_baselines.py): usable_sample_count now accepts target_branch and expected_sample_ids filters; _load_expected_sample_ids scopes sample IDs from the current seeder run to GPU model and target branch, preventing staging-branch samples from satisfying a develop-branch check.

Confidence Score: 3/5

The seeding, verification, and comment-rendering paths are safe; one message-text defect in the reviewer table could actively mislead a human about whether a retry-affected result passed or failed.

The _row_explanation function appends "; passed only after retry" for every non-HARD_FAILURE verdict when was_retried is True, including BLOCK and WARN. A BLOCK result decorated with that phrase tells a reviewer the check passed when it did not. Whether this state is reachable today depends on retry mechanics not visible in the diff, but the code provides no guard against it and the new tests don't cover it, so the defect could go undetected until it surfaces in a real run.

tools/perf_smoke_test/aggregate.py — specifically _row_explanation lines 181–184

Important Files Changed

Filename Overview
tools/perf_smoke_test/aggregate.py Adds reviewer-friendly Markdown output with overall verdict, guidance section, compact reviewer table, and collapsed technical details. Contains a logic defect in _row_explanation: when was_retried=True and verdict is BLOCK or WARN, the function appends "; passed only after retry" which contradicts the non-pass verdict.
tools/perf_smoke_test/verify_baselines.py Adds target-branch filter and current-run sample-ID filter to usable_sample_count; new _load_expected_sample_ids helper correctly scopes to GPU model and branch. Logic is sound and well-tested.
tools/perf_smoke_test/seed_baselines.py Adds container-local JIT cache for camera backends to avoid cross-user permissions; passes sample_index through to _record_from_result to disambiguate identical-FPS samples; enriches seed_records.json with hashes and sample_id.
tools/perf_smoke_test/baseline_manager.py Adds sample_index to _stable_sample_id hash key list and to make_sample_metadata; correctly prevents two identical-FPS samples within the same CI run from colliding to the same ID.
.github/workflows/perf-smoke-era-roll.yaml Single-line addition passes tasks: "__ALL_TASKS__" so an era roll seeds every task/backend bucket rather than whichever subset was previously default.
.github/workflows/perf-smoke-seed-baselines.yaml Threads the new --expected_records seed-artifacts/seed_records.json flag into the verifier invocation so it can cross-check seeded sample IDs against the baseline branch.
tools/perf_smoke_test/test/test_aggregate_reseed.py Adds two tests for the new Markdown summary; doesn't cover the was_retried=True + BLOCK/WARN path where the appended suffix contradicts the verdict.
tools/perf_smoke_test/test/test_verify_baselines.py Adds three new tests for target_branch scoping and expected_sample_ids; the git-backed integration test doesn't exercise the new target_branch filter end-to-end.
tools/perf_smoke_test/test/test_seed_ancestry.py Adds test for _uses_container_local_jit_cache hardlist and _docker_run_benchmark with jit_cache=None; coverage is complete and accurate.
tools/perf_smoke_test/test/test_contract_oracle_baseline.py Adds regression test proving that two identical-FPS samples with different sample_index values produce distinct sample_ids; correctly validates the deduplication fix.
tools/perf_smoke_test/test/test_image_era.py Single test added: reads the YAML file and asserts tasks: "__ALL_TASKS__" is present, locking the era-roll seeding behavior.

Sequence Diagram

sequenceDiagram
    participant ERA as era-roll workflow
    participant SEED as seed_baselines.py
    participant DOCKER as Docker container
    participant BL as perf-baselines branch
    participant VFY as verify_baselines.py
    participant AGG as aggregate.py (gate)

    ERA->>SEED: "tasks=__ALL_TASKS__, samples_per_commit=N"
    loop each task/backend
        alt container-local JIT bucket (camera/physx, camera/newton)
            SEED->>DOCKER: run (no jit_cache bind-mount, mkdir /tmp/jit-cache inside)
        else standard task
            SEED->>DOCKER: run (host jit_cache bound to /tmp/jit-cache)
        end
        DOCKER-->>SEED: perf_smoke_test_result.json
        SEED->>SEED: "make_sample_metadata(sample_index=i) → unique sample_id"
        SEED->>BL: update_baselines_git (append sample)
    end
    SEED->>SEED: write seed_records.json (sample_ids per bucket)
    SEED->>VFY: --expected_records seed_records.json --target_branch develop
    VFY->>BL: load samples.ndjson per bucket
    VFY->>VFY: "filter: target_branch==develop AND sample_id in expected_ids AND ancestor"
    VFY-->>ERA: PASS / FAIL (--require)

    Note over AGG: On PR gate run
    AGG->>BL: load baseline per bucket
    AGG->>AGG: oracle compare → OracleVerdict
    AGG->>AGG: _build_summary_markdown(rows, blocking)
    AGG-->>PR: sticky comment (Overall result + reviewer table + collapsed diagnostics)
Loading

Comments Outside Diff (1)

  1. tools/perf_smoke_test/test/test_verify_baselines.py, line 206-212 (link)

    P2 Git-backed integration test doesn't cover new target_branch filter

    verify_bucket is called without target_branch=..., so target_branch=None is passed and the new branch-matching logic is disabled in this path. All sample fixtures default to target_branch="develop", so the test would not catch a regression in the branch-filter plumbing between verify_bucket and usable_sample_count. Adding a call like verify_bucket(..., target_branch="develop") to this test and asserting the count doesn't drop to zero, plus a second call with target_branch="other" asserting usable==0, would close the gap.

Reviews (1): Last reviewed commit: "Finalize perf-smoke staging gate" | Re-trigger Greptile

Comment thread tools/perf_smoke_test/aggregate.py Resolved
Use neutral retry wording for WARN and BLOCK results so the sticky comment
cannot imply that a blocking regression passed.
@fatimaanes
fatimaanes merged commit 5f94a3f into isaac-sim:perf-smoke/develop-staging Jul 24, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants