Skip to content

[release/1.6] Suppress AMD export complexity lint inline - #24511

Merged
JacobSzwejbka merged 2 commits into
release/1.6from
codex/release-1.6-fix-amd-export-lint-20261103
Nov 3, 2026
Merged

JacobSzwejbka merged 2 commits into
release/1.6from
codex/release-1.6-fix-amd-export-lint-20261103

Conversation

@JacobSzwejbka

@JacobSzwejbka JacobSzwejbka commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the release branch Lint failure: examples/cuda/scripts/export_amd_pointwise.py fails Flake8 C901 because main has complexity 13, above the repository limit of 12.

As requested, add only # noqa: C901 to the existing main definition. The earlier refactor is removed; the original script logic, ROCm settings and validation checks are restored. All other lint checks remain active.

Verification

The repository-configured Flake8 check passes. AST comparison verifies that the entire script is identical to the release baseline apart from the comment.

The final PR diff changes one line in one file. Full ROCm export was not run locally on macOS; no executable code changes.

Prepared with OpenAI Codex.

Extract Triton source discovery into a helper, reducing main from complexity 13 to 10. Keep the release ROCm compile options, validation order, error messages and generated-code checks unchanged.

Prepared with OpenAI Codex.
@pytorch-bot

pytorch-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24511

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 4 Pending

As of commit ab77fc8 with merge base 4db778e (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2026
Restore the original export script and suppress complexity only on main, as requested. The script AST is unchanged from the release baseline and the repository Flake8 check passes.

Prepared with OpenAI Codex.
@JacobSzwejbka JacobSzwejbka changed the title [release/1.6] Fix complexity lint in AMD pointwise export [release/1.6] Suppress AMD export complexity lint inline Nov 3, 2026
@JacobSzwejbka
JacobSzwejbka merged commit 7c90561 into release/1.6 Nov 3, 2026
217 of 220 checks passed
@JacobSzwejbka
JacobSzwejbka deleted the codex/release-1.6-fix-amd-export-lint-20261103 branch November 3, 2026 18:03

This branch was previously deployed

1 inactive deployment
cadence — ab77fc85 Deployed Nov 3, 2026 by JacobSzwejbka via hifi5s-op-test / hifi5s #36298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants