Skip to content

Fix duplicate profile check to handle deleted files#2976

Merged
nand-nor merged 2 commits into
mainfrom
fix/ci-script-fix-for-deleted-profile-files
May 18, 2026
Merged

Fix duplicate profile check to handle deleted files#2976
nand-nor merged 2 commits into
mainfrom
fix/ci-script-fix-for-deleted-profile-files

Conversation

@nand-nor
Copy link
Copy Markdown
Contributor

@nand-nor nand-nor commented May 18, 2026

CI change: The check_duplicates.py script was failing when a PR deleted a profile file. The script would try to open the deleted file for comparison, causing a FileNotFoundError. This fix adds an existence check before attempting to open the file, skipping deleted files with an informative message. It also adds logic to emit a warning along with the PR comment artifact that is output when the dupe check is run.

The check_duplicates.py script was failing when a PR deleted a profile
file. The script would try to open the deleted file for comparison,
causing a FileNotFoundError.

This fix adds an existence check before attempting to open the file,
skipping deleted files with an informative message.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 18, 2026

CLA assistant check
All committers have signed the CLA.

@nand-nor nand-nor merged commit 67dd8a8 into main May 18, 2026
1 check passed
@nand-nor nand-nor deleted the fix/ci-script-fix-for-deleted-profile-files branch May 18, 2026 17:18
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.

5 participants