Skip to content

Comments

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

Open
ManuelPalenzuelaDD wants to merge 1 commit intodatadog-labs:mainfrom
ManuelPalenzuelaDD:feat/ci-visibility-oauth-scopes
Open

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

Conversation

@ManuelPalenzuelaDD
Copy link

@ManuelPalenzuelaDD ManuelPalenzuelaDD commented Feb 20, 2026

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
Collaborator

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants