Skip to content

ci(pr-title): reduce API calls and check out current revision - #9823

Open
BridgeAR wants to merge 2 commits into
masterfrom
BridgeAR/2026-08-14-pr-title-api-calls
Open

ci(pr-title): reduce API calls and check out current revision#9823
BridgeAR wants to merge 2 commits into
masterfrom
BridgeAR/2026-08-14-pr-title-api-calls

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

Push events cannot change title-derived labels, so they now retain changed-file validation without enumerating repository labels. Non-public title types skip changed-file pagination because they cannot fail internal-only validation.

Pull request base SHAs can predate the workflow revision. Checking out github.sha keeps the workflow and its changelog helpers on the same revision instead of failing when a helper was added later.

The pull request base SHA can predate the workflow revision, so helpers introduced with a workflow change are missing at runtime.
Pushes cannot change title-derived labels, and non-public title types cannot fail internal-only validation. Skip those lookups while retaining changed-file validation for public title types.
@dd-octo-sts

dd-octo-sts Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.2 MB
Deduped: 8.86 MB
No deduping: 8.86 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 441.72 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@BridgeAR
BridgeAR marked this pull request as ready for review August 14, 2026 21:34
@BridgeAR
BridgeAR requested a review from a team as a code owner August 14, 2026 21:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e6549a1d5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +84 to +86
(github.event.action == 'opened' ||
github.event.action == 'reopened' ||
(github.event.action == 'edited' && github.event.changes.title != null))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reconcile labels on synchronize replacements

When an opened or title-edited run is still executing and a commit is pushed, the per-PR cancel-in-progress setting cancels that run and replaces it with a synchronize run. This condition skips label synchronization for the replacement, so a new PR can remain without its required semver label, or an edited title can retain stale labels, until another qualifying event occurs. Include synchronize as a reconciliation fallback or otherwise ensure canceled runs cannot lose the label update.

AGENTS.md reference: AGENTS.md:L366-L370

Useful? React with 👍 / 👎.

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Aug 14, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.53% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4e6549a | Docs | Datadog PR Page | Give us feedback!

@pr-commenter

pr-commenter Bot commented Aug 14, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-14 21:49:35

Comparing candidate commit 4e6549a in PR branch BridgeAR/2026-08-14-pr-title-api-calls with baseline commit 5effc2a in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2284 metrics, 8 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-24

  • unstable max_rss_usage [-25.205MB; +7.563MB] or [-8.315%; +2.495%]

scenario:appsec-iast-with-vulnerability-iast-enabled-default-config-20

  • unstable max_rss_usage [-27.486MB; +25.062MB] or [-7.361%; +6.711%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-195.056ms; +432.468ms] or [-3.976%; +8.816%]
  • unstable execution_time [-201.749ms; +429.317ms] or [-4.052%; +8.623%]
  • unstable throughput [-151442.654op/s; +74388.506op/s] or [-8.990%; +4.416%]

scenario:plugin-claude-agent-sdk-compact-stream-scan-24

  • unstable cpu_usage_percentage [-4.808%; +6.818%]

scenario:plugin-graphql-long-with-depth-and-collapse-off-20

  • unstable max_rss_usage [-38.434MB; +17.308MB] or [-9.419%; +4.241%]

scenario:plugin-graphql-long-with-depth-off-20

  • unstable max_rss_usage [-4.933MB; +9.118MB] or [-3.875%; +7.163%]

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.53%. Comparing base (5effc2a) to head (4e6549a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9823   +/-   ##
=======================================
  Coverage   98.53%   98.53%           
=======================================
  Files         975      975           
  Lines      144148   144148           
  Branches    12430    12477   +47     
=======================================
  Hits       142031   142031           
  Misses       2117     2117           
Flag Coverage Δ
aiguard 57.23% <ø> (-0.03%) ⬇️
aiguard-integration 55.49% <ø> (ø)
apm-bucket-0 57.63% <ø> (-0.03%) ⬇️
apm-bucket-1 62.82% <ø> (-0.02%) ⬇️
apm-bucket-2 61.65% <ø> (-0.03%) ⬇️
apm-bucket-3 59.27% <ø> (-0.03%) ⬇️
apm-capabilities-tracing 62.35% <ø> (+0.04%) ⬆️
apm-integrations-aerospike 55.52% <ø> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 60.63% <ø> (-0.03%) ⬇️
apm-integrations-couchbase 56.21% <ø> (-0.03%) ⬇️
apm-integrations-http 61.38% <ø> (-0.02%) ⬇️
apm-integrations-kafkajs 61.15% <ø> (-0.03%) ⬇️
apm-integrations-next 58.89% <ø> (-0.03%) ⬇️
apm-integrations-prisma 58.33% <ø> (-0.02%) ⬇️
appsec 71.49% <ø> (-0.05%) ⬇️
appsec-express_fastify_graphql 68.91% <ø> (-0.02%) ⬇️
appsec-integration 49.60% <ø> (ø)
appsec-kafka_ldapjs_lodash 62.88% <ø> (-0.02%) ⬇️
appsec-mongodb-core_mongoose_mysql 66.37% <ø> (-0.02%) ⬇️
appsec-next 56.24% <ø> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 65.78% <ø> (-0.02%) ⬇️
appsec-sourcing_stripe_template 64.21% <ø> (-0.02%) ⬇️
debugger 63.70% <ø> (-0.01%) ⬇️
instrumentations-bucket-0 51.24% <ø> (-0.03%) ⬇️
instrumentations-bucket-1 59.13% <ø> (-0.03%) ⬇️
instrumentations-bucket-10 60.39% <ø> (-0.02%) ⬇️
instrumentations-bucket-11 61.05% <ø> (-0.02%) ⬇️
instrumentations-bucket-12 51.15% <ø> (-0.03%) ⬇️
instrumentations-bucket-13 52.00% <ø> (-0.03%) ⬇️
instrumentations-bucket-14 51.26% <ø> (-0.03%) ⬇️
instrumentations-bucket-2 52.49% <ø> (-0.03%) ⬇️
instrumentations-bucket-3 53.13% <ø> (-0.03%) ⬇️
instrumentations-bucket-4 58.21% <ø> (-0.03%) ⬇️
instrumentations-bucket-5 48.82% <ø> (-0.02%) ⬇️
instrumentations-bucket-6 59.74% <ø> (-0.03%) ⬇️
instrumentations-bucket-7 51.44% <ø> (-0.03%) ⬇️
instrumentations-bucket-8 57.92% <ø> (-0.02%) ⬇️
instrumentations-bucket-9 56.75% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-couchbase 50.22% <ø> (-0.03%) ⬇️
instrumentations-integration-esbuild 33.87% <ø> (ø)
llmobs-ai_anthropic_bedrock 62.31% <ø> (-0.02%) ⬇️
llmobs-bucket-1 60.84% <ø> (-0.02%) ⬇️
llmobs-openai 61.25% <ø> (-0.02%) ⬇️
llmobs-openai-agents_vertex-ai 59.56% <ø> (-0.02%) ⬇️
llmobs-sdk 67.23% <ø> (-0.03%) ⬇️
master-coverage 98.53% <ø> (?)
openfeature 55.19% <ø> (ø)
openfeature-unit 52.84% <ø> (-0.03%) ⬇️
platform-core_esbuild_instrumentations-misc 40.85% <ø> (-0.02%) ⬇️
platform-integration 59.92% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 38.49% <ø> (-0.02%) ⬇️
plugins-bucket-0 56.43% <ø> (-0.02%) ⬇️
plugins-bucket-1 53.55% <ø> (ø)
plugins-bucket-11 60.93% <ø> (-0.03%) ⬇️
plugins-bucket-17 60.75% <ø> (-0.02%) ⬇️
plugins-bucket-18 61.42% <ø> (-0.02%) ⬇️
plugins-bucket-19 60.78% <ø> (-0.03%) ⬇️
plugins-bucket-20 63.15% <ø> (-0.03%) ⬇️
plugins-bucket-4 57.81% <ø> (-0.03%) ⬇️
plugins-bullmq_cassandra_cookie 60.84% <ø> (-0.03%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 55.86% <ø> (-0.03%) ⬇️
plugins-fetch_fs_generic-pool 57.72% <ø> (-0.03%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 63.60% <ø> (-0.02%) ⬇️
plugins-hapi_hono_ioredis 59.38% <ø> (-0.03%) ⬇️
plugins-knex_langgraph_ldapjs 54.60% <ø> (-0.03%) ⬇️
plugins-light-my-request_limitd-client_lodash 57.86% <ø> (-0.03%) ⬇️
plugins-mariadb_memcached_mercurius 61.02% <ø> (-0.02%) ⬇️
plugins-mongodb_mongodb-core_mongoose 58.75% <ø> (-0.03%) ⬇️
plugins-multer_mysql_mysql2 58.34% <ø> (-0.03%) ⬇️
plugins-nats_node-serialize_opensearch 59.86% <ø> (-0.03%) ⬇️
plugins-passport-http_pino_postgres 58.08% <ø> (-0.03%) ⬇️
plugins-process_pug_redis 56.89% <ø> (-0.03%) ⬇️
plugins-undici_url_valkey 57.54% <ø> (-0.02%) ⬇️
plugins-vm_winston_ws 59.07% <ø> (-0.03%) ⬇️
profiling 61.16% <ø> (-0.02%) ⬇️
serverless-aws-sdk-aws-sdk 54.40% <ø> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 50.47% <ø> (-0.03%) ⬇️
serverless-aws-sdk-bedrockruntime 54.19% <ø> (-0.02%) ⬇️
serverless-aws-sdk-client 55.71% <ø> (-0.03%) ⬇️
serverless-aws-sdk-dynamodb 55.01% <ø> (-0.03%) ⬇️
serverless-aws-sdk-eventbridge 56.49% <ø> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 58.55% <ø> (-0.02%) ⬇️
serverless-aws-sdk-lambda 56.73% <ø> (-0.02%) ⬇️
serverless-aws-sdk-s3 55.11% <ø> (-0.02%) ⬇️
serverless-aws-sdk-serverless-peer-service 59.13% <ø> (-0.02%) ⬇️
serverless-aws-sdk-sns 59.34% <ø> (-0.02%) ⬇️
serverless-aws-sdk-sqs 59.75% <ø> (-0.02%) ⬇️
serverless-aws-sdk-stepfunctions 54.94% <ø> (-0.02%) ⬇️
serverless-aws-sdk-util 50.99% <ø> (-0.03%) ⬇️
serverless-bucket-0 53.35% <ø> (ø)
serverless-bucket-1 58.36% <ø> (-0.03%) ⬇️
test-optimization-cucumber 70.54% <ø> (-0.04%) ⬇️
test-optimization-cypress 64.73% <ø> (+0.03%) ⬆️
test-optimization-jest 71.98% <ø> (-0.01%) ⬇️
test-optimization-mocha 72.05% <ø> (+0.04%) ⬆️
test-optimization-playwright-playwright-atr 59.52% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-efd 59.67% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-final-status 59.83% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-impacted-tests 59.39% <ø> (+0.13%) ⬆️
test-optimization-playwright-playwright-reporting 60.86% <ø> (-0.07%) ⬇️
test-optimization-playwright-playwright-test-management 60.32% <ø> (-0.05%) ⬇️
test-optimization-playwright-playwright-test-span 59.57% <ø> (-0.08%) ⬇️
test-optimization-selenium 58.77% <ø> (-0.15%) ⬇️
test-optimization-testopt 57.44% <ø> (+0.07%) ⬆️
test-optimization-vitest 72.70% <ø> (+0.02%) ⬆️
test-optimization-vitest-browser 58.62% <ø> (-0.02%) ⬇️
test-optimization-webdriverio 64.91% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant