Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
issuer: https://gitlab.ddbuild.io

subject_pattern: "project_path:DataDog/apm-reliability/(dd-trace-.*|libdatadog):.*"

permissions:
pull_requests: write
Comment on lines +3 to +6

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
subject_pattern: "project_path:DataDog/apm-reliability/(dd-trace-.*|libdatadog):.*"
permissions:
pull_requests: write
subject_pattern: "project_path:DataDog/apm-reliability/dd-trace-[a-z0-9-]+:ref_type:branch:ref:(main|master)"
claim_pattern:
project_path: "DataDog/apm-reliability/dd-trace-[a-z0-9-]+"
ref_type: "branch"
ref_protected: "true"
pipeline_source: "pipeline"
ci_config_ref_uri: "gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-[a-z0-9-]+//.gitlab-ci.yml@refs/heads/(main|master)"
permissions:
pull_requests: write

The policy as-is is too lax. I don't think libdatadog should be included as a subject as we already have benchmark jobs triggered internally and use a different existing policy. They shouldn't share a policy with this workflow.

I don't know how these benchmarks are going to work, but my suggestion assumes they are going to run on the default branch of the SDKs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current plan is to have those benchmarks run on some branch of the SDK/tracers (but not the default one, since the idea is to auto update the SDK to some a version of libdatadog corresponding to q PR, so this will be on a new, dedicated branch). At some point this SDK benchmark job needs to write back a comment here to report the result, which I think is the goal of this policy change. Hopes that clarifies. But also maybe there's a better way to orchestrate all of this, so open to suggestions here!

Loading