Skip to content

Run eight candidate-wheel RTX task checks on code PRs - #135

Merged
anle2024 merged 20 commits into
mainfrom
codex/engine-pr-ci
Nov 2, 2026
Merged

anle2024 merged 20 commits into
mainfrom
codex/engine-pr-ci

Conversation

@anle2024

@anle2024 anle2024 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Build the candidate wheel on CPU, then install that exact artifact in a fresh RTX environment. Run eight seed-zero task checks with actual CUDA training and prediction work. Require complete finite outputs and enforce atol=0.005, rtol=0 for repeated and reloaded predictions. Allow label or rank changes only when the affected scores explain them within the same bound.

Select GPU work from the complete PR diff and report kumo-engine-pr-ci through changes → wheel → gpu → required. Keep build and GPU time limits separate. Require an explicit tolerance in the shared action and runner.

Use one cached Cargo target and stable compiler wrappers. Pin pip, Zig and cargo-zigbuild. Seed bounded Rust and installer caches from main for PRs to restore. Download the shared, checksum-pinned fixture with AWS credentials limited to that step.

Testing Done

58 CPU tests and 36 documentation tests passed. Documentation references, pinned yapf, flake8, isort, diff checks and the commit secret scan passed.

Copied-PR GPU validation at 3bc9201d passed all four jobs, eight fits and sixteen comparisons. The Core GPU workflow also passed kumo-core-gpu-ci at this commit. Retained RTX measurements include ten fixed-model regression repeat predictions and one reload comparison. Issue 156 tracks regression prediction nondeterminism.

The separate connector suite requires two restricted BigQuery test identities that are not configured. CI details.

Change map

File changes and review responses

@copy-pr-bot

copy-pr-bot Bot commented Oct 29, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@anle2024
anle2024 had a problem deploying to gha-kumo-workflow-tests October 29, 2026 17:31 — with GitHub Actions Error
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

The pull request adds a GPU smoke runner for eight Kumo Engine task types, a composite action that installs a built wheel and retrieves verified test fixtures, and a workflow that selects eligible pull requests for CPU wheel builds and GPU tests. It adds tests for runner output comparisons and workflow decisions, includes those tests in OSS Readiness, and documents the workflow and fixture process.

Sequence Diagram(s)

sequenceDiagram
  participant Workflow as PR workflow
  participant WheelJob as CPU wheel job
  participant GPUAction as GPU smoke action
  participant S3 as AWS S3
  participant SmokeRunner as GPU smoke runner
  Workflow->>WheelJob: Build wheel for eligible run
  WheelJob-->>Workflow: Upload wheel artifact
  Workflow->>GPUAction: Download wheel and invoke smoke action
  GPUAction->>S3: Download pinned fixture archive
  S3-->>GPUAction: Return fixture archive
  GPUAction->>SmokeRunner: Run eight task checks
  SmokeRunner-->>GPUAction: Write smoke summary
Loading
Merge Risk: Low · up to 3bc92

The GPU check may reject a valid wheel when the runner’s temporary path contains a symlink. A non-symlink path is a workaround.

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

Failed Failed checks: 1 error · 1 inconclusive

Check name Status Explanation Resolution
Public Resource Access Error The pull request adds a required S3 fixture reference at packages/kumo-engine/test/pr172/inputs.json:3-5. The GPU action downloads that object at .github/actions/engine-gpu-smoke/action.yml:68-85 … Replace the S3 bucket/key with an anonymously readable public fixture and update the SHA-256, or include the fixture archive and required metadata in this repository.
Change Map Design Review Inconclusive The required PR conversation comment is unavailable. Repository guidance requires one dedicated comment beginning with <!-- kumo-pr-change-map --> and says that comment must contain the Change map, … Provide the complete current PR conversation comment beginning with <!-- kumo-pr-change-map -->, or enable access to the PR comments. Then compare each proposed change with the linked problem and changed-code diff, and reassess the design…
Passed Passed checks: 1 passed
Check name Status Explanation
Pr Size Passed The pull request changes 10 files. This does not exceed the 40-file limit.
Full details: Public Resource Access

Explanation

The pull request adds a required S3 fixture reference at packages/kumo-engine/test/pr172/inputs.json:3-5. The GPU action downloads that object at .github/actions/engine-gpu-smoke/action.yml:68-85 using assumed AWS credentials. An anonymous HTTPS request to the corresponding S3 URL returns 403 Forbidden. The fixture is not included in the repository, so the changed GPU check requires inaccessible external data.

Resolution

Replace the S3 bucket/key with an anonymously readable public fixture and update the SHA-256, or include the fixture archive and required metadata in this repository.

Full details: Change Map Design Review

Explanation

The required PR conversation comment is unavailable. Repository guidance requires one dedicated comment beginning with &lt;!-- kumo-pr-change-map --&gt; and says that comment must contain the Change map, rationale, observed failure or release requirement, existing behavior, smallest sufficient change, focused verification, and stopping condition. The supplied context provides only a link and summary, and repository search found no copy of that comment. Without it, this design review cannot test necessity, abstraction-layer choice, behavior preservation, or omitted material behavior against the author's proposal.

Resolution

Provide the complete current PR conversation comment beginning with &lt;!-- kumo-pr-change-map --&gt;, or enable access to the PR comments. Then compare each proposed change with the linked problem and changed-code diff, and reassess the design.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@anle2024

anle2024 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

Change map

Near-tie predictions could fail despite valid scores inside the numerical bound. The fix keeps complete finite outputs and strict score bounds while checking whether changed decisions are explained by the affected scores. Build caches also need an explicit target and default-branch seeding. The candidate wheel runs on RTX through the trusted copied-PR workflow.

File Function / scope What changed Why
.github/actions/engine-gpu-smoke/action.yml Shared GPU action Require explicit tolerance, select the wheel once, remove unused output and duplicate mkdir, and restore the bounded main installer cache. Keep installation small and enforce the caller contract.
.github/workflows/kumo-engine-pr.yml Selection, wheel, GPU, required and cache jobs Use the exact CPU-built artifact on RTX with explicit atol=0.005 and rtol=0. Set one Cargo target, stable compiler wrappers and pinned tools. Seed bounded caches on main and restore on PRs. Preserve linker identity across both builders so restored dependencies can be reused.
.github/workflows/oss-readiness.yml Existing pytest invocation Run the pure smoke and executed workflow policy tests. Keep these guards active without a separate harness.
docs/development/engine-pr-ci.md Current workflow contract Describe the selected 0.005 tolerance, near-tie rules, manual PR-branch dispatch and cache behavior. Keep guidance consistent with the implementation.
docs/development/testing.md Validation guidance Document the 0.005 bound and bounded decision changes alongside strict score and output checks. Explain the contract without requiring exact decisions on near ties.
packages/kumo-engine/test/pr172/README.md Fixture record Describe the current shared versioned bundle and remove obsolete migration history. Keep fixture identity and recovery guidance concise.
packages/kumo-engine/test/pr172/inputs.json Fixture location Use the shared key in the existing versioned bucket and retain the same SHA-256. Preserve input bytes without a personal prefix.
packages/kumo-engine/test/wheel_gpu_smoke.py Output alignment and comparison Enforce score bounds for every task, validate decisions, allow only bounded near ties and require caller tolerance. Keep actual CUDA work proof. Accept explained flips while rejecting malformed or substantially changed predictions.
test/scripts/test_engine_gpu_smoke.py Pure comparison guards Cover valid flips, invalid decisions, exact tolerance boundaries, complete outputs and missing tolerance. Test behavior without training or GPU access.
test/scripts/test_engine_pr_workflow.py Executed workflow boundaries Exercise full-PR selection and required results, main cache selection and propagated build settings. Catch policy and environment mistakes on CPU.

Response to review 5741696993

Point Response and evidence
1. Possible random failures Completed 10 RTX repeat prediction runs on one fixed seed-0 regression model, with the same wheel and inputs. All ten repeats passed atol=0.005, rtol=0, with maximum difference 0.00035119056701660156. One additional reload comparison passed at 5.4836273193359375e-6. Individual results and fingerprints. Near-tie changes now require supporting scores within the same bound. Complete finite outputs, valid decisions and CUDA work remain enforced. The separate final-head workflow also passed all eight tasks and sixteen comparisons.
2. Real copied-PR path Verified at current head 3bc9201 by copy-pr-bot push run 41539627272. All four Engine jobs, eight fits and sixteen comparisons passed. Core run 41539627431 also passed. Both kumo-engine-pr-ci and kumo-core-gpu-ci are visible and green on the PR at this head.
3. Caches and runner Verified useful Rust reuse: 610.20 seconds / 452 compilation events cold versus 291.34 seconds / 54 events with an exact cache hit. One pair only. Installer timings show no improvement. The seed OS now matches RTX Ubuntu 24.04. Main seeding awaits merge; no larger runner is selected.
4. Duplication and defaults Tolerance is required throughout. Removed unused ENGINE_SMOKE_WHEEL, the second wheel glob and duplicate mkdir. Tests use configured tolerance boundaries instead of one observed drift value.
5. Build tools Exact pip, Zig and cargo-zigbuild versions are pinned. Isolated builds receive a Zig constraint. Both native builds succeeded with the pinned tool versions and contained the extension and ingest binary.
6. Docs Removed obsolete history and documented the required bound, near-tie rules and mandatory PR-branch selection for manual dispatch. Documentation checks pass.

58 pure CPU cases and 36 documentation tests passed. The documentation checker inspected 242 Markdown files. Static checks passed. The new comparison and workflow tests were observed failing before the fixes. The broader storage audit recovered historical models and predictions. Their hardware, wheels and profiles differ from the final PR135 candidate. The Ready transition and one eight-model copied-PR run are now authorized. The RTX regression study completed ten repeat prediction runs on one fixed model and one reload comparison. Its per-run results are linked below.

The [CPU-only pair](https://github.com/NVIDIA/kumo-engine/actions/runs/41515895440) at ba86cda passed. Cold build: 610.20 seconds and 452 compilation events. Restored build: 291.34 seconds and 54 compilation events, with an exact hit on a 526,456,609-byte Rust archive. This is an observed 52.3% reduction in one pair of separate hosted jobs, not a stable speedup or slowdown limit. The stable wrappers address the linker-configuration invalidations found in diagnostic 41512839974. The pinned tools and one cached Cargo target are preserved. The Rust wheel job is unchanged in final commit ea1c9a8. Its installer seed moves to Ubuntu 24.04 to match the verified RTX cache-key platform. The separate Ubuntu 22.04 installer pair measured 32.14 seconds cold and 32.82 seconds restored, so it shows no installation speedup. Main-to-PR cache seeding remains configured for activation after merge. The existing CPU runner is retained.

Completed historical repeat/reload measurements

We have 10 completed historical runs with wheel 1.0.0, the same seed 0, and a binary workload with 50 entities and 3,000 events. These runs used Tesla T4.

Measurement across the 10 runs Recorded result
Maximum absolute difference for repeated predictions 1.1920928955078125e-7
Maximum absolute difference after model reload 1.1920928955078125e-7
Changed labels in repeat and reload comparisons 0 in each set

These historical binary maxima fit both the former PR135 bound of 1e-4 and the newly selected atol=0.005, rtol=0. Their original run configuration remains unchanged. They do not qualify the regression or other RTX profiles. The original report retains the detailed historical settings. These figures compare repeated and reloaded predictions of each model, rather than predictions between separately trained models. They do not establish the same result for every RTX task or the current candidate wheel.

Source: recovered report /mnt/localssd/pr135-evidence-audit-20261102.cHClIG/recovered-ten-run-gpu-study.json (SHA-256 4bd61828e8dd7082795eeeef583cc5432a22ad9a73fedf100435a56f85271b47), specifically gpu-measurement/variation.json and the ten gpu-measurement/run-*/workflow-result.json records. The original archive is /home/anle/workspace/kumo-wheel-measurements-20261021/gpu-evidence.tar.gz. These are retained local evidence paths; the measurements are reproduced above for review.

Other historical profiles

The larger nightly set retains 60 RTX PRO 6000 cases, 60 checkpoints and 120 repeat/reload comparisons. The audit matched all 240 retained artifact hashes. Of the 120 reported comparisons, 53 exceed 1e-4. The largest is 0.003963470458984375 in r02-regression-normal; both repeat and reload reproduce it from raw outputs. Keep this larger profile separate from the small PR135 fixture. Near-tie rules do not waive numerical score bounds.

At the former atol=1e-4 bound, the comparator rechecked 96 raw non-link comparisons on CPU: 67 accepted and 29 rejected. The other 24 comparisons retain canonical link ranks, which are inventoried separately from complete catalog score arrays. This analysis loads no model and runs no GPU prediction. The T4 and nightly records use wheel SHA-256 1bc15ecb7696bce216b05aa883d6897d2b8ce4342c6c2f9d62b7cc28b314539e, which differs from the candidate.

Another 50 valid weekly observations cover five repetitions of ten Q13–Q17 profiles. They cover different tasks and do not confirm the PR135 limit. The recovered data supports analysis and test cases. It does not establish a universal 1e-4 limit or a final-head GPU workflow PASS.

Historical PR135 task differences

These sixteen comparisons come from the single RTX run at 0fa8f2ec, not the current candidate.

Task Repeat max absolute difference Reload max absolute difference
binary 3.4924596548080444e-09 0.0
multiclass 0.0 7.450580596923828e-09
multilabel 4.5299530029296875e-06 4.5299530029296875e-06
multilabel_ranking 3.288686275482178e-05 3.288686275482178e-05
regression 0.0 1.621246337890625e-05
forecasting 4.958361387252808e-06 6.288290023803711e-06
static_link 0.0 0.0
temporal_link 0.0 0.0

Larger nightly differences by task and arm

These are historical larger profiles, not PR135 tolerance qualification.

Task Arm Cases Repeat max absolute difference Reload max absolute difference Comparisons above 1e-4
binary control 4 1.4565885067e-06 1.4565885067e-06 0
binary normal 4 3.4037977457e-05 3.4037977457e-05 0
forecasting control 4 9.50414687395e-06 7.55488872528e-06 0
forecasting normal 4 0.000236630439758 0.000198513269424 5
multiclass control 4 9.50694084167e-05 8.25524330139e-05 0
multiclass normal 4 0.000167489051819 0.000162541866302 6
multilabel control 4 9.49949026108e-05 8.01086425781e-05 0
multilabel normal 4 0.000189900398254 0.000137209892273 7
multilabel_ranking control 4 0.000123590230942 0.000123590230942 2
multilabel_ranking normal 4 9.52482223511e-05 0.000136852264404 1
regression control 4 4.16040420532e-05 4.16040420532e-05 0
regression normal 4 0.00396347045898 0.00396347045898 8
static_link control 3 0.00126904249191 0.00126904249191 6
static_link normal 3 0.00302290916443 0.00302290916443 6
temporal_link control 3 0.00154173374176 0.0016508102417 6
temporal_link normal 3 0.00176906585693 0.00186634063721 6

Broader CI at prior head 94dc95e had two BigQuery permission-test failures from missing restricted service-account configuration. Exact-head log. The latest copied-PR status is recorded separately below.

Prior copied-PR failure at ea1c9a8

Real copied-PR run 41517373894 completed at exact head ea1c9a8. PR135 is Ready. The write-access account approved that SHA, then copy-pr-bot synchronized it to pull-request/135 and triggered a push event. changes and wheel passed. The GPU job failed during the fifth task, regression: the repeated prediction difference was 0.0014081001281738281, about 14.08 times atol=1e-4, with rtol=0. Binary, multiclass, multilabel and multilabel ranking passed their repeat/reload comparisons. Regression reload, forecasting, static link and temporal link did not run. kumo-engine-pr-ci is visible on the PR at this exact head and is red. The run took 709 seconds including queues and job transitions. The GPU program reported 136.30 seconds before failure. It used an RTX PRO 6000 Blackwell with Torch 2.15.0+cu132 and CUDA 13.2. The tested wheel is 1.0.0.dev0+ea1c9a8, SHA-256 fd5949935a77898a81129e55d3a05a0691d7c94a2f01ea2935e98adca6ffd9b7. The full passing eight-task result is still missing. No tolerance increase or rerun was used. The failed-task raw arrays and saved model are not retained by the existing temporary-directory cleanup; the summary and full logs remain available.

[Focused RTX evidence](https://github.com//pull/135#issuecomment-6588581434) used the exact failed-run wheel ea1c9a8 and one fixed seed-0 regression model. Completed 10 repeat prediction runs and one reload comparison on this fixed regression model. All passed atol=0.005, rtol=0. Repeat maximum: 0.00035119056701660156. Reload maximum: 5.4836273193359375e-6. Five repeats exceeded the former 1e-4 bound. All outputs were complete and finite. Raw-output recomputation matched all eleven differences. The recent failure was 0.0014081001281738281. The separate larger historical profile reached 0.003963470458984375 on wheel 1.0.0. These conditions differ. The fixed-model measurements support the selected tolerance. The final-head workflow result below covers all eight task types.

GPU workflow validation at 5ebe150

Real copied-PR run 41526194163 passed at exact head 5ebe150c4768ee9735c1552bc51fcd03f37e5520. copy-pr-bot[bot] synchronized this commit to pull-request/135 and triggered a push event. All four jobs passed: changes, wheel, kumo-engine-pr-gpu and kumo-engine-pr-ci. The required check passed for 5ebe150. The RTX job completed eight seed-zero fits and sixteen repeat/reload comparisons at atol=0.005, rtol=0, with actual nonempty CUDA work and complete finite outputs. Maximum repeat difference: 0.0012218952178955078 in regression. Maximum reload difference: 0.000636756420135498 in static link. All decisions stayed equal in this run. The candidate wheel is 1.0.0.dev0+5ebe150, SHA-256 4befde3c2a7b9fec84283f91f3dd7bb7e75b3bb1e0b8671754b5ce94e4b810af. The fixture checksum is unchanged. RTX PRO 6000 Blackwell, Torch 2.15.0+cu132, CUDA 13.2. Total elapsed time including queues was 1,191 seconds (19 minutes 51 seconds). Wheel job: 530 seconds. GPU job: 372 seconds, including 288.86 seconds in the smoke program. This is one complete final-head run. It does not replace the separate repeat study or establish a universal failure rate. The prior ea1c9a8 failure remains recorded separately.

The separate [connector pytest job at this head](https://github.com/NVIDIA/kumo-engine/actions/runs/41526119902/job/125560297939) fails two existing BigQuery permission tests: test_bigquery_table_permission_fail_read_table and test_bigquery_project_permission_fail_read_table. Their restricted identities GCP_BIGQUERY_NO_TABLE_SERVICE_ACCOUNT and GCP_BIGQUERY_NO_JOB_SERVICE_ACCOUNT are not configured. This remains separate from the passing eight-task Engine check and requires the credential owner to resolve. The change does not disable or weaken those tests.

Final review cleanup

Addressed the final review in 3bc9201. The PR body describes the final state and links the evidence. Both Python files pass pinned yapf 0.40.2, flake8 and isort. One threshold expression uses a local name so yapf and flake8 agree, with the comparison logic preserved. The guide states the current 60-minute wheel and 22-minute GPU limits. The remote probe branch anle/pr135-cache-probe-20261102 is deleted. Regression nondeterminism is tracked in issue 156. Cleanup validation: 58 CPU tests, 36 documentation tests, 242-file reference check, diff check and commit secret scan passed.

Current-head GPU validation

Current-head copied-PR run 41539627272 passed at 3bc9201d1e5688276f19366d0c962a9b585bbc2d. The actor is copy-pr-bot[bot], event push, branch pull-request/135. All four Engine jobs passed, with eight physical fits and sixteen repeat/reload comparisons at atol=0.005, rtol=0. Maximum repeat difference: 0.00014591217041015625. Maximum reload difference: 0.0002396106719970703. Both maxima are from multiclass. All decisions stayed equal. Actual CUDA work, complete outputs and finite values passed. Wheel: 1.0.0.dev0+3bc9201, SHA256 2582920b287d5e56693ea8222671baab8f92f94c4371d6f179801c6966ae03fd. The fixture checksum is unchanged. Total elapsed time including queues: 1,070 seconds (17 minutes 50 seconds). The wheel job took 530 seconds and the GPU job took 271 seconds. Core GPU run 41539627431 also passed. Both kumo-core-gpu-ci and kumo-engine-pr-ci are visible and green on PR135 at the current head.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 17:34 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 17:45 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 20:14 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 20:47 — with GitHub Actions Inactive
Vedaant Jain requested fast local feedback and accepted full CI near 22 minutes. Preserve the preferred 20-minute metric and the strict under-25-minute guardrail.
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 21:51 — with GitHub Actions Inactive

@Vedaant-J Vedaant-J 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.

Thanks. A GPU smoke check on the exact candidate wheel for all eight task types is worth having. The size (+15.3k lines, 50 files, a 13.8 MB binary) is out of proportion to what it checks, though, and the workflow already misses its own time budget. Could you cut it down to the core check before review?

  1. Drop the tests of the harness. test/scripts/test_engine_*.py is ~5.8k lines, and some files are as large as the code they test: test_engine_wheel_scale_data.py (1,646) for wheel_scale_data.py (1,646), and test_engine_wheel_gpu.py (763) for wheel_gpu_learning.py (692). The harness is test code, and the GPU job running green is its test. Keep at most a few small unit tests for non-obvious pure functions.
  2. Keep the graphs on S3, not in git. Remove pr172/small-pr172-data.tar.gz (13.8 MB) and the 1,000-line pr172/graphs.json. Upload the prepared graphs to S3 once (versioned, with a checksum) and have the job download them through the workflow's existing AWS credentials step.
  3. Remove the reporting and audit machinery. The timing-budget audit, runtime report, artifact replay of installed files, and the engine-pr-owner-source.py observer that waits for another workflow aren't needed for a pass/fail smoke check. GitHub already shows job times, and the existing workflows report themselves.
  4. Merge the harness modules into one runner. wheel_scale_data, wheel_scale_learning, wheel_gpu_learning, wheel_learning, wheel_task_learning, wheel_node_tasks, wheel_temporal_tasks, wheel_task_checks, wheel_measurements and wheel_workflow could be one short script plus a table of the eight task configs. For each task it does: download data → fit (seed 0) → predict → save/load → assert finite and complete outputs, CUDA used, and the reloaded model gives identical predictions.
  5. Keep one workflow job: build the wheel, install it in a clean env on the GPU runner, run the script. Path filters only if they're simple.

I'd expect that to come to roughly 1–2k lines with the same guarantees, and it should also bring the job under the 20-minute target. Happy to review the slimmed version.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 23:17 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 29, 2026 23:50 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 30, 2026 01:10 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 30, 2026 20:39 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests October 30, 2026 21:00 — with GitHub Actions Inactive

@Vedaant-J Vedaant-J 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.

Re-reviewed at 0fa8f2e. Thanks: the CPU build plus artifact hand-off, the single strict tolerance, the reused changes/required jobs and the shared, versioned fixture all look right. What's left:

  1. Possible random failures. On RTX the same model drifts up to ~4e-5 between repeats, so 1e-4 has ~2.5× headroom from two runs. Labels and ranks must also match exactly, even on near-ties (test_engine_gpu_smoke.py:222-229 requires a 2e-7 near-tie flip to fail). Please allow a decision change when the scores involved are within the tolerance, and get ~10 repeat runs on RTX before fixing the bound.

  2. The real PR path hasn't run at this head. The passing run is a workflow_dispatch, so changes was skipped. Please get one copy-pr-bot pull-request/135 run green (changes → wheel → gpu → required) and check that kumo-engine-pr-ci shows on the PR.

  3. Make the build caches work. Without them every PR pays the full build. Right now:

    • The DiskGraph build took 11m30s with a rust-cache hit vs 8m49s without, so the maturin/pip wheel build probably isn't using the cached target dir. Point CARGO_TARGET_DIR at the cached path.
    • The uv cache is per pull-request/N branch and never seeded from main, so no PR reuses it. Save on main, restore on PR branches.
    • The repo cache is over its 10 GB limit, so entries get evicted. Keep the saved entries small.

    If it's still slow, run the wheel job on a larger runner (for example the nv-cpu-general group #42 uses).

  4. Dead or duplicated code.

    • The 1e-5 default in action.yml:13 and wheel_gpu_smoke.py:168, 446, 556 is unused and below the measured drift. Make the input required, or use one 1e-4 constant.
    • ENGINE_SMOKE_WHEEL is written but never read, and the wheel is globbed twice (action.yml:49-52).
    • mkdir appears twice (action.yml:33, 101).
    • test_engine_gpu_smoke.py:192-205 hard-codes the observed drift.
  5. Pin ziglang and cargo-zigbuild in the wheel job. They build the wheel the GPU job runs.

  6. Docs.

    • Remove the remaining history wording (engine-pr-ci.md:71-72, pr172/README.md, wheel_gpu_smoke.py:197, 326).
    • Say that a manual dispatch must run on the PR branch, since a dispatch from main fails the head check.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests November 2, 2026 19:21 — with GitHub Actions Inactive
@anle2024

anle2024 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

Response to point 1, “Possible random failures,” in Vedaant’s review.

We have 10 completed historical runs with wheel 1.0.0, the same seed 0, and a binary workload with 50 entities and 3,000 events. These runs used Tesla T4.

Measurement across the 10 runs Recorded result
Maximum absolute difference for repeated predictions 1.1920928955078125e-7
Maximum absolute difference after model reload 1.1920928955078125e-7
Changed labels in repeat and reload comparisons 0 in each set

These completed measurements support PR135's selected repeat/reload tolerance, atol=1e-4, rtol=0, within this measured historical binary profile. Both recorded maxima are below the current absolute bound. We compare the raw absolute differences with that bound; we do not relabel the historical run configuration as the current PR135 configuration. The original report retains the detailed historical settings. These figures compare repeated and reloaded predictions of each model, rather than predictions between separately trained models. They do not establish the same result for every RTX task or the current candidate wheel.

Source: recovered report /mnt/localssd/pr135-evidence-audit-20261102.cHClIG/recovered-ten-run-gpu-study.json (SHA-256 4bd61828e8dd7082795eeeef583cc5432a22ad9a73fedf100435a56f85271b47), specifically gpu-measurement/variation.json and the ten gpu-measurement/run-*/workflow-result.json records. The original archive is /home/anle/workspace/kumo-wheel-measurements-20261021/gpu-evidence.tar.gz. These are retained local evidence paths; the measurements are reproduced above for review.

Final-head PR workflow validation

Final-head PR workflow validation is separate. The complete copied-PR route, changes → wheel → gpu → required, and its kumo-engine-pr-ci result remain unconfirmed at the current commit. The ten historical measurements above are completed evidence, not a result for that route. No new training or GPU workflow was started for this evidence update.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests November 2, 2026 20:04 — with GitHub Actions Inactive
@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests November 2, 2026 20:08 — with GitHub Actions Inactive
@anle2024
anle2024 marked this pull request as ready for review November 2, 2026 20:13
@anle2024

anle2024 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

/ok to test ea1c9a8

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note

Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.

Other comments: 1
packages/kumo-engine/test/wheel_gpu_smoke.py: 1

616-619: Minor · Stability & Availability · Quick win

Resolve sys.prefix before the containment check.

Path(kumo.__file__).resolve() follows symlinks. Path(sys.prefix) does not. A venv keeps its unresolved creation path in sys.prefix. If RUNNER_TEMP has a symlink in its path, the correct installed wheel fails with "Require the selected installed wheel". Resolve both paths.

🐛 Proposed fix
         if (version != args.expected_version or kumo.__version__ != version
                 or not Path(kumo.__file__).resolve().is_relative_to(
-                    Path(sys.prefix)) or not torch.cuda.is_available()
+                    Path(sys.prefix).resolve()) or not torch.cuda.is_available()
                 or torch.cuda.device_count() != 1):

Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between ce6acc6 and ea1c9a8.

Files selected for processing: 10
  • .github/actions/engine-gpu-smoke/action.yml
  • .github/workflows/kumo-engine-pr.yml
  • .github/workflows/oss-readiness.yml
  • docs/development/engine-pr-ci.md
  • docs/development/testing.md
  • packages/kumo-engine/test/pr172/README.md
  • packages/kumo-engine/test/pr172/inputs.json
  • packages/kumo-engine/test/wheel_gpu_smoke.py
  • test/scripts/test_engine_gpu_smoke.py
  • test/scripts/test_engine_pr_workflow.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@anle2024

anle2024 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

The real copied-PR route ran at ea1c9a8b58db811600468ddffac2133de35a6e14. Its result is FAIL.

PR135 was marked Ready for review. The write-access account posted the exact-SHA approval. copy-pr-bot[bot] copied that head to pull-request/135 and triggered run 41517373894 through a push event. No manual PR-workflow dispatch or old-run retry was used.

Step Result
changes PASS; selected GPU work from the full PR diff
wheel PASS; built and retained the candidate artifact
gpu FAIL during the fifth task, regression
required FAIL; kumo-engine-pr-ci is visible and red on this exact PR head

The regression repeat comparison measured 0.0014081001281738281 against atol=1e-4, rtol=0, about 14.08 times the absolute bound. This is a numerical score failure. The near-tie decision rule keeps that bound strict. Regression reload and the three later tasks were not reached.

Task Result Repeat max absolute difference Reload max absolute difference
binary PASS 9.313225746154785e-10 9.313225746154785e-10
multiclass PASS 1.2516975402832031e-06 1.2516975402832031e-06
multilabel PASS 2.3351982235908508e-05 2.3351982235908508e-05
multilabel_ranking PASS 0.0 0.0
regression FAIL at repeat 0.0014081001281738281 Not run
forecasting Not run Not run Not run
static_link Not run Not run Not run
temporal_link Not run Not run Not run

The installed wheel is 1.0.0.dev0+ea1c9a8, SHA-256 fd5949935a77898a81129e55d3a05a0691d7c94a2f01ea2935e98adca6ffd9b7. The fixture archive remains a20a1e1412c963bf732e6323c3aeac3e96e4b2c253d25a3c45c7f5acf37d6c9a. The run reports RTX PRO 6000 Blackwell, Python 3.12.16, Torch 2.15.0+cu132 and CUDA 13.2. Those reported versions and GPU model match the earlier 0fa8f2ec pass. The wheel is a new candidate. The full run took 709 seconds, including queues and transitions; the GPU program stopped after 136.30 seconds.

The GPU summary artifact and GPU log retain the failure. The current artifact does not retain the failed regression arrays or model, so it does not identify the exact operator or row that caused the drift.

The ten completed historical T4 binary runs remain valid supporting evidence within their measured profile. This current RTX regression failure prevents an all-task claim for 1e-4. The requested green copied-PR result remains unfulfilled. The tolerance is unchanged, and no rerun was started.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests November 2, 2026 21:11 — with GitHub Actions Inactive
@anle2024

anle2024 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

/ok to test 5ebe150

@anle2024

anle2024 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

We completed 10 repeat prediction runs on RTX using one fixed seed-0 regression model, the same wheel and identical inputs. All ten repeat comparisons passed atol=0.005, rtol=0. The maximum absolute difference was 0.00035119056701660156. One additional save/reload comparison also passed, with maximum difference 5.4836273193359375e-6. The per-run results and fingerprints are below.

Commit 5ebe150c sets the RTX PR caller to atol=0.005, rtol=0. The action and runner still require an explicit tolerance. Every score remains bounded. Complete finite outputs, actual CUDA work and valid decisions remain required. A changed label or reversed rank pair must be explained by scores within the same tolerance. This is a 50-fold increase from the previous absolute bound.

We completed a focused regression measurement using the exact wheel from ea1c9a8 in failed run 41517373894. Its saved model was unavailable. We trained one seed-0 model, held that checkpoint fixed, saved its model bundle, made a baseline prediction and ten further predictions, then reloaded that bundle once and predicted again. Python, NumPy and PyTorch seeds reset to 0 before each prediction. No wheel rebuild or other task ran during this measurement.

Prediction Seconds Max absolute difference from baseline Within 0.005
baseline 1.469745388 Baseline N/A
repeat-01 1.451356270 0.0 Yes
repeat-02 1.455104272 0.00035119056701660156 Yes
repeat-03 1.450714653 0.00035119056701660156 Yes
repeat-04 1.457071838 0.0 Yes
repeat-05 1.469281419 1.430511474609375e-05 Yes
repeat-06 1.455881924 0.0 Yes
repeat-07 1.467765483 0.0 Yes
repeat-08 1.460059034 0.00035119056701660156 Yes
repeat-09 1.445506840 0.00035119056701660156 Yes
repeat-10 1.448600883 0.00035119056701660156 Yes
reload 1.455438199 5.4836273193359375e-06 Yes

All 11 comparisons passed atol=0.005, rtol=0. Repeat maximum: 0.00035119056701660156. Reload maximum: 5.4836273193359375e-06. Five of ten repeats exceeded the former 1e-4 bound. All 12 outputs contained the same 1,765 entities and expected time anchor, with finite values. Each prediction completed 36 observed CUDA batches. CPU recomputation from the retained Parquet files matched every recorded difference. Training took 24.467 seconds and the measurement process took 61.732 seconds. Prediction times include output materialization and CUDA synchronization at both boundaries.

Configuration: the unchanged delivery regression fixture and model plan, seed 0, batch 64, 16 channels, two neighbor hops of 16, dropout 0, Adam learning rate 0.01 and Huber loss. One fit completed 200 optimizer steps. The selected checkpoint records step 180. There was no refit. Prediction anchor: 2025-12-01. Runtime rows: 22,567 train, 1,722 validation and 1,765 test.

Environment: existing AWS RTX PRO 6000 Blackwell Server Edition GPU0, UUID GPU-aa12fb5e-7813-e531-5e91-7b828aa2cab1, driver 595.91.07. Python 3.12.16, PyTorch 2.15.0+cu132, CUDA 13.2. The measurement matched the failed run's Python release and all recorded dependency versions. CPU thread limits were 4. Deterministic algorithms were disabled, float32 matmul precision was highest and cuDNN benchmark was disabled, as recorded in the retained report.

Fingerprints (SHA-256):

wheel:      fd5949935a77898a81129e55d3a05a0691d7c94a2f01ea2935e98adca6ffd9b7
checkpoint: 38e6a589bf7ab2b4204dbfa1b96ce3bda51e3dc6066cd188098a3eb9ef8772fe
fixture:    a20a1e1412c963bf732e6323c3aeac3e96e4b2c253d25a3c45c7f5acf37d6c9a
input:      655bfc3920cdbb510dc91244421054637c9f91b5912a54e49c43fdd9f527c034
model plan: fb89b4fedffcfeaace127ac21c34c6aac22e98988a06aac662d4c6619f6ea1f7
raw archive:540720d0c794e0c0a64b9d13edaa4bff609425ea8d40f60e358e8eaffa69e8bc

The raw Parquet predictions, aligned arrays, model bundle, configuration, package list and hash manifest remain retained in pr135-focused-regression-20261102/evidence.tar.gz. The comparison CSV and independent CPU verification remain beside it. The individual results are reproduced above so the review does not depend on access to a local path.

The recent failure measured 0.0014081001281738281 on the same wheel and fixture. That model was not retained. It ran regression fifth in an eight-task process. This focused measurement uses a new checkpoint and runs regression alone on a different physical GPU of the same model. The historical regression maximum, 0.003963470458984375, used wheel 1.0.0 and a larger nightly profile with 65,099 output rows. Both earlier maxima also fall below 0.005, but the conditions differ and do not establish one common distribution or a universal failure rate. The ten historical T4 binary runs remain separate evidence: repeat/reload maxima 1.1920928955078125e-7 and zero label changes.

CPU checks at 5ebe150c: 58 passed, including the configured score boundary and near-tie guards. Documentation: 36 tests passed and 242 Markdown files checked. Workflow lint, diff checks and the commit secret scan passed.

Copied-PR validation at 5ebe150

Real copied-PR run 41526194163 passed at exact head 5ebe150c4768ee9735c1552bc51fcd03f37e5520. copy-pr-bot[bot] synchronized this commit to pull-request/135 and triggered a push event. All four jobs passed: changes, wheel, kumo-engine-pr-gpu and kumo-engine-pr-ci. The required check passed for 5ebe150. The RTX job completed eight seed-zero fits and sixteen repeat/reload comparisons at atol=0.005, rtol=0, with actual nonempty CUDA work and complete finite outputs. Maximum repeat difference: 0.0012218952178955078 in regression. Maximum reload difference: 0.000636756420135498 in static link. All decisions stayed equal in this run. The candidate wheel is 1.0.0.dev0+5ebe150, SHA-256 4befde3c2a7b9fec84283f91f3dd7bb7e75b3bb1e0b8671754b5ce94e4b810af. The fixture checksum is unchanged. RTX PRO 6000 Blackwell, Torch 2.15.0+cu132, CUDA 13.2. Total elapsed time including queues was 1,191 seconds (19 minutes 51 seconds). Wheel job: 530 seconds. GPU job: 372 seconds, including 288.86 seconds in the smoke program. This is one complete final-head run. It does not replace the separate repeat study or establish a universal failure rate. The prior ea1c9a8 failure remains recorded separately.

Task Repeat max absolute difference Reload max absolute difference
binary 0.0 1.1641532182693481e-09
multiclass 0.0 0.0
multilabel 2.9802322387695312e-08 4.470348358154297e-08
multilabel_ranking 4.023313522338867e-07 0.0
regression 0.0012218952178955078 7.2479248046875e-05
forecasting 3.159046173095703e-06 3.129243850708008e-07
static_link 0.0 0.000636756420135498
temporal_link 0.0 0.0

The wheel and GPU summaries remain attached to the linked workflow run. The focused regression measurements above use the earlier ea1c9a8 wheel. This table uses the newly built 5ebe150 wheel. The repeat study measures variation within one fixed regression model. The full workflow covers all eight task types.

The separate connector pytest job at this head fails two existing BigQuery permission tests: test_bigquery_table_permission_fail_read_table and test_bigquery_project_permission_fail_read_table. Their restricted identities GCP_BIGQUERY_NO_TABLE_SERVICE_ACCOUNT and GCP_BIGQUERY_NO_JOB_SERVICE_ACCOUNT are not configured. This remains separate from the passing eight-task Engine check and requires the credential owner to resolve. The change does not disable or weaken those tests.

Copied-PR validation at 3bc9201

Current-head copied-PR run 41539627272 passed at 3bc9201d1e5688276f19366d0c962a9b585bbc2d. The actor is copy-pr-bot[bot], event push, branch pull-request/135. All four Engine jobs passed, with eight physical fits and sixteen repeat/reload comparisons at atol=0.005, rtol=0. Maximum repeat difference: 0.00014591217041015625. Maximum reload difference: 0.0002396106719970703. Both maxima are from multiclass. All decisions stayed equal. Actual CUDA work, complete outputs and finite values passed. Wheel: 1.0.0.dev0+3bc9201, SHA256 2582920b287d5e56693ea8222671baab8f92f94c4371d6f179801c6966ae03fd. The fixture checksum is unchanged. Total elapsed time including queues: 1,070 seconds (17 minutes 50 seconds). The wheel job took 530 seconds and the GPU job took 271 seconds. Core GPU run 41539627431 also passed. Both kumo-core-gpu-ci and kumo-engine-pr-ci are visible and green on PR135 at the current head.

Task Repeat max absolute difference Reload max absolute difference
binary 7.450580596923828e-09 0.0
multiclass 0.00014591217041015625 0.0002396106719970703
multilabel 4.413723945617676e-05 4.413723945617676e-05
multilabel_ranking 0.0 0.0
regression 2.7418136596679688e-06 2.7418136596679688e-06
forecasting 1.004338264465332e-05 1.004338264465332e-05
static_link 0.0 0.0
temporal_link 0.0 0.0

The ten fixed-model regression repeat predictions earlier in this comment remain the ea1c9a8 study. The tables identify each candidate wheel separately. The separate connector suite at 3bc9201 still fails two restricted BigQuery permission tests because their test identities are not configured: current job.

@Vedaant-J

Copy link
Copy Markdown
Contributor

Checked 5ebe150c. The real copy-pr-bot run is green, near-tie handling is right, the caches are set up correctly and the pins are in. Keeping 0.005 for now is fine. Regression drifting ~1e-3 between repeats of the same model looks like a product nondeterminism, so it's worth an issue.

Cleanup before merge:

  1. PR body: describe the final state only. Drop the run history (the earlier failed run, the T4 and nightly studies, the duplicated final-head result) and the local filesystem paths in the evidence section.
  2. yapf: wheel_gpu_smoke.py and test_engine_gpu_smoke.py aren't yapf-clean.
  3. Docs: engine-pr-ci.md:103-104 still says "no longer uses the GPU job's budget"; describe it as it is.
  4. Probe branch: delete anle/pr135-cache-probe-20261102 from the repo.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests November 2, 2026 22:00 — with GitHub Actions Inactive
@anle2024

anle2024 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Addressed the cleanup feedback in 3bc9201d.

  1. The PR body now describes the final implementation and links the evidence. The run history, duplicated result and local filesystem paths are removed from the body.
  2. Both Python files pass the repository-pinned yapf==0.40.2, flake8==7.1.2 and isort==5.12.0. One threshold expression uses a local name so yapf and flake8 agree. Inlining that expression reproduces the original syntax tree. The test file's syntax tree is unchanged.
  3. The guide states the current limits directly: 60 minutes for the wheel job and 22 minutes for the GPU job.
  4. The remote anle/pr135-cache-probe-20261102 branch is deleted.

Opened issue 156 for the fixed-model regression prediction drift, with the measured differences, environment and fingerprints.

Cleanup validation passed 58 CPU tests, 36 documentation tests, the 242-file documentation reference check, formatter and lint checks, diff checks and the commit secret scan. Current-head validation also passed: Engine PR run, with eight fits and sixteen comparisons, and Core GPU run. Both required GPU checks are green at 3bc9201. The workflow, fixture and selected tolerance are unchanged.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nitpick comments: 1
test/scripts/test_engine_gpu_smoke.py: 1

252-252: Trivial · Maintainability & Code Quality · Quick win

Make the rank-boundary case reach the rank check.

When gap exceeds atol, the two score matrices differ by gap. compare_predictions rejects that difference before it checks the swapped ranks. A broken rank-boundary check would therefore still pass this test. Use identical score matrices for each comparison and vary gap between the cases. The rejection will then test the rank rule.


Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 5ebe150 and 3bc9201.

Files selected for processing: 3
  • docs/development/engine-pr-ci.md
  • packages/kumo-engine/test/wheel_gpu_smoke.py
  • test/scripts/test_engine_gpu_smoke.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@anle2024

anle2024 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

/ok to test 3bc9201

@anle2024
anle2024 merged commit 9ac307d into main Nov 2, 2026
129 of 130 checks passed
@anle2024
anle2024 deleted the codex/engine-pr-ci branch November 2, 2026 23:53

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 3bc9201d Deployed Nov 2, 2026 by anle2024 via import #1272
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.

2 participants