-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[LOGSC-1681] Add a check to validate that logs assets are owned by logs team #17185
[LOGSC-1681] Add a check to validate that logs assets are owned by logs team #17185
Conversation
e4e36ab
to
8362890
Compare
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/codeowners.py
Outdated
Show resolved
Hide resolved
8362890
to
35492d6
Compare
The |
35492d6
to
678af31
Compare
The |
6c7baf6
to
d5e5642
Compare
0c8860e
to
9245dbc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
75281f1
to
d5e5642
Compare
9245dbc
to
ab8f0bf
Compare
d5e5642
to
ca09e9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just a couple small things.
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/codeowners.py
Outdated
Show resolved
Hide resolved
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/codeowners.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Ilia Kurenkov <ilia.kurenkov@datadoghq.com>
559972c
to
a4b3f32
Compare
@txominpelu could you add a changelog entry and run |
Sure, does this look good to you ?2fad0b3 I've also run the command that you've suggested but it's only changing files that I haven't touched. |
The |
027c445
to
5e1bf62
Compare
This reverts commit a6a979e.
Test Results 4 files 4 suites 3m 41s ⏱️ Results for commit cc7deb8. ♻️ This comment has been updated with latest results. |
codeowner_map = create_codeowners_map() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codeowner_map = create_codeowners_map() |
That's initilialized in the if
statement right after
if failed_integrations: | ||
for integration in failed_integrations: | ||
echo_failure(f"/{integration}/assets/logs/ is not owned by {LOGS_TEAM}") | ||
abort() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abort() | |
has_failed = True |
I would drop it so we can go through the rest of the validation after :)
echo_success("All integrations have valid logs codeowners.") | ||
|
||
codeowner_map = create_codeowners_map() | ||
|
||
has_failed = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and thus move this to the top 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to the bottom ? Like, this commit: cc7deb8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant has_failed = False
, so it works if you put your code at the bottom 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaaah, haha. Makes sense, I did it even if I had not fully understood your comment :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small request, otherwise lgtm!
What does this PR do?
After the migration of logs assets to the APW repos, we've had to update the github
CODEOWNER
files in all repos to make sure that logs assets for all integrations are owned by logs. With this PR we are adding a check to make sure that this condition is always met.Motivation
Additional Notes
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.