Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base branch baseline file for additional PR filtering #8264

Merged
merged 1 commit into from
May 14, 2024

Conversation

JimSuplizio
Copy link
Member

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
14 checks passed
@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