feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests#96
Open
ManuelPalenzuelaDD wants to merge 1 commit intodatadog-labs:mainfrom
Open
Conversation
Add ci_visibility_read and test_optimization_read OAuth scopes to DefaultScopes so the flaky tests endpoint can be accessed via OAuth. Also enable the unstable v2.SearchFlakyTests operation. Note: test_optimization_read requires the AAA team to add it to the datadog-api-claude-plugin registrable client's PermissionNames before it will work in the OAuth authorize flow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator
|
Note: just refactored this project onto Rust so let me know and will happily port this change over |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caution
Do not merge until the AAA team adds
test_optimization_readto thedatadog-api-claude-pluginregistrable client. Merging before that will breakpup auth loginfor all users.Summary
ci_visibility_readandtest_optimization_readOAuth scopes toDefaultScopes()for CI Visibility / Test Optimization endpoint accessv2.SearchFlakyTestsoperation sopup cicd flaky-tests searchworksDependency
test_optimization_readrequires the AAA team (Delegated Authentication) to add it to thedatadog-api-claude-pluginregistrable client'sPermissionNamesin the database. Tracking via #aaa Slack.Test plan
TestDefaultScopespassespup auth logout && pup auth loginsucceedspup cicd flaky-tests search --limit 10returns results🤖 Generated with Claude Code