Skip to content

Conversation

@thomas-lebeau
Copy link
Collaborator

Motivation

In some instance we need to be able to force deploy manually, ignoring monitor checks (e.g. hotfix)

Changes

  • Ignore initial monitor check in deploy job when the option to check the monitors status is turned off
  • Decouple gh release job from the developer extension job so we can unconditionally run this job manually from the CI if needed.

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

@thomas-lebeau thomas-lebeau marked this pull request as ready for review October 28, 2025 10:32
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner October 28, 2025 10:32
Copy link

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

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 17 to 27
runMain(async () => {
command`node ./scripts/deploy/check-monitors.ts ${uploadPath}`.withLogs().run()
if (withMonitorChecks) {
command`node ./scripts/deploy/check-monitors.ts ${uploadPath}`.withLogs().run()
}

command`node ./scripts/deploy/deploy.ts prod ${version} ${uploadPath}`.withLogs().run()
command`node ./scripts/deploy/upload-source-maps.ts ${version} ${uploadPath}`.withLogs().run()

if (withGateMonitors && uploadPath !== 'root') {
if (withMonitorChecks) {
await gateMonitors(uploadPath)
}

Choose a reason for hiding this comment

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

P1 Badge Restore skip of monitor gating for GOV deployments

deploy-prod-dc.ts now runs gateMonitors(uploadPath) whenever withMonitorChecks is true, whereas the previous version explicitly skipped gating when the upload path was root. .gitlab/deploy-auto.yml passes true for all DCs, but check-monitors.ts has no monitor IDs configured for root, so the gate loop simply logs “No monitors configured” once per minute and waits out the full 30‑minute timeout. This change makes every automatic GOV deployment block for 30 minutes without providing any checks, noticeably slowing the release pipeline.

Useful? React with 👍 / 👎.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point @codex, can you fix this?

Choose a reason for hiding this comment

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

Summary

  • Added a guard to skip the post-deploy monitor gating loop whenever the upload path is root, restoring the previous behavior for GOV deployments while preserving the initial optional monitor check. scripts/deploy/deploy-prod-dc.tsL15-L27

Testing

  • ⚠️ Tests not run (not requested)

View task →

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@codex, address this feedback in this PR, no need to create a separate PR for this

Choose a reason for hiding this comment

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

Summary

  • Skipped the post-deploy monitor gating loop when the upload path is root, preventing GOV deployments from waiting out the 30-minute timeout while preserving the initial optional monitor check. scripts/deploy/deploy-prod-dc.tsL22-L27

Testing

  • ⚠️ Tests not run (not requested)

View task →

@cit-pr-commenter
Copy link

cit-pr-commenter bot commented Oct 28, 2025

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 162.96 KiB 162.96 KiB 0 B 0.00%
Rum Recorder 19.78 KiB 19.78 KiB 0 B 0.00%
Rum Profiler 4.89 KiB 4.89 KiB 0 B 0.00%
Logs 56.62 KiB 56.62 KiB 0 B 0.00%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 119.90 KiB 119.90 KiB 0 B 0.00%
Worker 23.60 KiB 23.60 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base CPU Time (ms) Local CPU Time (ms) 𝚫%
RUM - add global context 0.0044 0.0039 -11.36%
RUM - add action 0.0129 0.0116 -10.08%
RUM - add error 0.0128 0.0113 -11.72%
RUM - add timing 0.0031 0.0026 -16.13%
RUM - start view 0.0038 0.0031 -18.42%
RUM - start/stop session replay recording 0.0008 0.0006 -25.00%
Logs - log message 0.0154 0.0129 -16.23%
🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 25.42 KiB 26.00 KiB +602 B
RUM - add action 45.71 KiB 47.52 KiB +1.81 KiB
RUM - add timing 24.31 KiB 24.36 KiB +55 B
RUM - add error 50.42 KiB 51.10 KiB +701 B
RUM - start/stop session replay recording 24.16 KiB 23.52 KiB -654 B
RUM - start view 422.72 KiB 431.19 KiB +8.47 KiB
Logs - log message 41.60 KiB 44.35 KiB +2.75 KiB

🔗 RealWorld

@datadog-official
Copy link

datadog-official bot commented Oct 28, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 92.64% (+0.01%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 592ec23 | Docs | Was this helpful? Give us feedback!


step-7_create-github-release:
needs:
- step-6_publish-developer-extension
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: add when: manual, else the release will be created as soon as we reach the "deploy" stage, without waiting for anything to finish.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, thank you!

@thomas-lebeau thomas-lebeau merged commit 7ebf657 into main Oct 29, 2025
21 checks passed
@thomas-lebeau thomas-lebeau deleted the thomas.lebeau/improve-manual-deploy-jobs branch October 29, 2025 08:17
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.

3 participants