Skip to content

Conversation

@JimSuplizio
Copy link
Contributor

As per instructions:

The codeowners-linter pipeline, for PRs, suffers from the problem that if the base branch has errors the PR will effectively be stuck until those errors are fixed and the updated CODEOWNERS file is merged into the PR branch. This happens when people leave the company or Azure. The plan is to create a base branch baseline file from the base branch CODEOWNERS and use that to further filter any errors in the PR. This way, only errors in the PR will prevent the PR check in.

This fix comes in two parts and this is the first. The linter has a new option, -bbl, which takes a path, including the filename, to the base branch baseline file. If generating the baseline, with the -gbl option, it'll create the file. If filtering errors, with the -fbl option, it'll use the base branch baseline file to further filter errors. The -bbl option, if not passed in or empty, in the case scheduled runs, just behaves as it previously did.

@JimSuplizio JimSuplizio requested a review from weshaggard May 14, 2024 16:18
@JimSuplizio JimSuplizio self-assigned this May 14, 2024
@JimSuplizio JimSuplizio added the CODEOWNERS Linter Anything related to the CODEOWNERS linter label May 14, 2024
@JimSuplizio JimSuplizio merged commit 0d4a130 into Azure:main May 14, 2024
@JimSuplizio JimSuplizio deleted the BaseBrachBaseline branch May 14, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CODEOWNERS Linter Anything related to the CODEOWNERS linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants