Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: reduce "Upload tests to datadog" times in CI#17668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugodutka merged 1 commit intomainfromhugodutka/datadog-ci-optimization
May 5, 2025

Conversation

hugodutka
Copy link
Contributor

@hugodutkahugodutka commentedMay 5, 2025
edited
Loading

This PR speeds up the "Upload tests to datadog" step by downloading thedatadog-ci binary directly from GitHub releases. Most of the time used to be spent innpm install, which consistently timed out on Windows after a minute.Now it takes 3 seconds.

I updated it to version v2.48.0 because v2.21.0 didn't have the artifacts for arm64 macOS.

matifali reacted with heart emoji
@hugodutkahugodutka changed the titlechore: optimize "Upload tests to datadog" times in CIchore: reduce "Upload tests to datadog" times in CIMay 5, 2025
@hugodutkahugodutka marked this pull request as ready for reviewMay 5, 2025 12:08
@hugodutkahugodutkaforce-pushed thehugodutka/datadog-ci-optimization branch frombb80dee to5d42295CompareMay 5, 2025 12:29
exit 1
fi
echo "Downloading DataDog CI binary version ${BINARY_VERSION} for ${{ runner.os }}..."
Copy link
Member

Choose a reason for hiding this comment

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

Needs SHA256 validation

Copy link
Member

Choose a reason for hiding this comment

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

Which will be hard now that the version is an input...

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'll remove the input then

Copy link
Member

@matifalimatifaliMay 5, 2025
edited
Loading

Choose a reason for hiding this comment

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

Why would it need SHA256 validation? We are downloading from the official repo, and also, the CLI only works if the correct token is available? Also, the test logs are all public; there is no sensitive data. Or. is it, and I am missing something?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

It mitigates supply-chain attacks. If somebody took over Datadog's repo, they'd be able to swap the release files for a malicious payload. AFAIK, release artifacts are mutable.

matifali reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@deansheather I added hash verification

@hugodutkahugodutkaforce-pushed thehugodutka/datadog-ci-optimization branch from5d42295 tof589664CompareMay 5, 2025 16:16
BINARY_HASH_MACOS="e87c808638fddb21a87a5c4584b68ba802965eb0a593d43959c81f67246bd9eb"
BINARY_HASH_LINUX="5e700c465728fff8313e77c2d5ba1ce19a736168735137e1ddc7c6346ed48208"

TMP_DIR=$(mktemp -d)
Copy link
Member

Choose a reason for hiding this comment

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

Could this go in runner temp instead so it hits the ramdisk? The perf savings are probably miniscule but might as well

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The perf savings are probably miniscule

Indeed, I don't think it's worth optimizing further if the entire step already takes only 3 seconds

@hugodutkahugodutka merged commit6b4d3f8 intomainMay 5, 2025
30 of 32 checks passed
@hugodutkahugodutka deleted the hugodutka/datadog-ci-optimization branchMay 5, 2025 16:50
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 5, 2025
@hugodutka
Copy link
ContributorAuthor

For future reference, this helps unblock#15109.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@matifalimatifalimatifali left review comments

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@hugodutkahugodutka

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@hugodutka@matifali@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp