Skip to content

Conversation

izaitsevfb
Copy link
Contributor

Preparation for pytorch/test-infra#7016

Currently merging this PR is a noop change for PyTorch repo (bc-linter is not looking at the config yet).

Copy link

pytorch-bot bot commented Aug 22, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 44 Pending

As of commit 7ce616d with merge base 419a2db (image):
💚 Looks good so far! There are no failures yet. 💚

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

Copy link
Member

@seemethere seemethere left a comment

Choose a reason for hiding this comment

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

very ez

@izaitsevfb
Copy link
Contributor Author

@pytorchbot merge -f 'noop change, lint passed'

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

izaitsevfb added a commit to pytorch/test-infra that referenced this pull request Aug 27, 2025
This PR makes bc-linter configurable (via .bc-linter.yml, [see the
spec](https://github.com/pytorch/test-infra/blob/e73b14f75422a0fb38212c2d465f9a86fb20a11c/tools/stronghold/docs/bc_linter_config.md)).


#### Changes:

- added api.config with yaml loader
- config status is logged (and loaded config is printed with --verbose)
- simplified default excludes to [".", "./", "/./", "/."] (removed
pytorch-specific paths, added them back [via config
file](pytorch/pytorch#161319))
- for globs used pathspec (gitwildmatch)

#### Action + Dependencies

- added runtime deps file tools/stronghold/requirements.runtime.txt
(PyYAML, pathspec).
- composite action now installs runtime deps before build/run.

#### Tests

- Added tests for glob semantics, loader behaviors, defaults, scan
flags, annotations, and top‑level vs nested paths.


Backtesting [new config](pytorch/pytorch#161319)
against paths in PyTorch codebase:

```
- Total .py files: 13820
- Old allowed (a07e5d9 rules): 4926
- New allowed: 4926
- Diffs: 0 (perfect match)
```

Testing action end-to-end close to prod:
pytorch/pytorch#161325
see [this
run](https://github.com/pytorch/pytorch/actions/runs/17168177594/job/48713225885?pr=161325#step:2:6155),
correctly returns a single warning (job failure is expected).
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Preparation for pytorch/test-infra#7016

Currently merging this PR is a noop change for PyTorch repo (bc-linter is not looking at the config yet).
Pull Request resolved: pytorch#161319
Approved by: https://github.com/seemethere, https://github.com/ZainRizvi
@github-actions github-actions bot deleted the bc-lint-config branch September 22, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants