Skip to content

feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests#96

Closed
ManuelPalenzuelaDD wants to merge 1 commit into
DataDog:mainfrom
ManuelPalenzuelaDD:feat/ci-visibility-oauth-scopes
Closed

feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests#96
ManuelPalenzuelaDD wants to merge 1 commit into
DataDog:mainfrom
ManuelPalenzuelaDD:feat/ci-visibility-oauth-scopes

Conversation

@ManuelPalenzuelaDD

@ManuelPalenzuelaDD ManuelPalenzuelaDD commented Feb 20, 2026

Copy link
Copy Markdown

Caution

Do not merge until the AAA team adds test_optimization_read to the datadog-api-claude-plugin registrable client. Merging before that will break pup auth login for all users.

Summary

  • Add ci_visibility_read and test_optimization_read OAuth scopes to DefaultScopes() for CI Visibility / Test Optimization endpoint access
  • Enable the unstable v2.SearchFlakyTests operation so pup cicd flaky-tests search works

Dependency

test_optimization_read requires the AAA team (Delegated Authentication) to add it to the datadog-api-claude-plugin registrable client's PermissionNames in the database. Tracking via #aaa Slack.

Test plan

  • TestDefaultScopes passes
  • After AAA team updates the registrable client: pup auth logout && pup auth login succeeds
  • pup cicd flaky-tests search --limit 10 returns results

🤖 Generated with Claude Code

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>
@ManuelPalenzuelaDD ManuelPalenzuelaDD changed the title feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests ⚠️ DO NOT MERGE - feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests Feb 20, 2026
@ManuelPalenzuelaDD
ManuelPalenzuelaDD marked this pull request as ready for review February 20, 2026 12:13
@ManuelPalenzuelaDD ManuelPalenzuelaDD changed the title ⚠️ DO NOT MERGE - feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests feat(cicd): add CI Visibility OAuth scopes and enable SearchFlakyTests Feb 20, 2026
@platinummonkey

Copy link
Copy Markdown
Collaborator

Note: just refactored this project onto Rust so let me know and will happily port this change over

@platinummonkey

Copy link
Copy Markdown
Collaborator

closing this as it was fixed in #153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants