Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🔗 Commit SHA: 7d11050 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
a83fc18 to
35cda9b
Compare
35cda9b to
78322bb
Compare
78322bb to
872da69
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 872da69279
ℹ️ 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".
yoannmoinet
left a comment
There was a problem hiding this comment.
Two small nits, otherwise looks good.
One note, I'm not sure how we should handle it when the upload succeed but the release does not.
It's fine as is, but maybe something to keep in mind for the future, unless you have an idea now.
| expect(getIntakeUrl('datadoghq.com', 'my-app')).toBe( | ||
| 'https://api.datadoghq.com/api/unstable/app-builder-code/apps/my-app/upload', | ||
| ); | ||
| expect(getIntakeUrl('datadoghq.eu', 'my-app')).toBe( | ||
| 'https://api.datadoghq.eu/api/unstable/app-builder-code/apps/my-app/upload', | ||
| ); | ||
| expect(getIntakeUrl('ddog-gov.com', 'my-app')).toBe( | ||
| 'https://api.ddog-gov.com/api/unstable/app-builder-code/apps/my-app/upload', | ||
| ); | ||
| expect(getIntakeUrl('us5.datadoghq.com', 'my-app')).toBe( | ||
| 'https://api.us5.datadoghq.com/api/unstable/app-builder-code/apps/my-app/upload', | ||
| ); | ||
| expect(getIntakeUrl('dd.datad0g.com', 'my-app')).toBe( | ||
| 'https://api.dd.datad0g.com/api/unstable/app-builder-code/apps/my-app/upload', | ||
| ); |
There was a problem hiding this comment.
Not sure we need to test for all DD sites.
One should be well enough to verify the string update.
Same for the following test.
| expect(getIntakeUrl('datadoghq.com', 'my-app')).toBe( | |
| 'https://api.datadoghq.com/api/unstable/app-builder-code/apps/my-app/upload', | |
| ); | |
| expect(getIntakeUrl('datadoghq.eu', 'my-app')).toBe( | |
| 'https://api.datadoghq.eu/api/unstable/app-builder-code/apps/my-app/upload', | |
| ); | |
| expect(getIntakeUrl('ddog-gov.com', 'my-app')).toBe( | |
| 'https://api.ddog-gov.com/api/unstable/app-builder-code/apps/my-app/upload', | |
| ); | |
| expect(getIntakeUrl('us5.datadoghq.com', 'my-app')).toBe( | |
| 'https://api.us5.datadoghq.com/api/unstable/app-builder-code/apps/my-app/upload', | |
| ); | |
| expect(getIntakeUrl('dd.datad0g.com', 'my-app')).toBe( | |
| 'https://api.dd.datad0g.com/api/unstable/app-builder-code/apps/my-app/upload', | |
| ); | |
| expect(getIntakeUrl('datadoghq.eu', 'my-app')).toBe( | |
| 'https://api.datadoghq.eu/api/unstable/app-builder-code/apps/my-app/upload', | |
| ); |
There was a problem hiding this comment.
They're all valid DD sites, and imo more tests/more explicit tests are better than fewer
There was a problem hiding this comment.
This is just string substitution, apart from adding overhead and unnecessary execution time, there is no added value to test these.
We could test for getIntakeUrl('toto', 'hello') giving us 'https://api.toto/api/unstable/app-builder-code/apps/hello/upload' with the same result in coverage and testing efficiency.
Here, more tests only means more executions for no added value at all.
Co-authored-by: Yoann Moinet <597828+yoannmoinet@users.noreply.github.com>
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
oliver.li@datadoghq.com unqueued this merge request |
|
/remove |
|
View all feedbacks in Devflow UI.
|
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
devflow unqueued this merge request: It did not become mergeable within the expected time |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
This pull request was merged directly. |

What and why?
After uploading the built zip archive to Datadog (presumably in a CI environment), also mark that version as the latest released version by making a PUT call to
release/liveMaking this call in the build script was the best possible move because various configs e.g. the Datadog site is configured in the Datadog vite plugin, which would be non-trivial to extract in a CI script and it would be user-unfriendly to have the user configure that again e.g. in the GH action.
How?
Call
/release/liveusingdoRequestafter the application has been uploaded