Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: integrate v2 CI nightly to run from main #2363

Merged
merged 13 commits into from Nov 20, 2023

Conversation

darccio
Copy link
Contributor

@darccio darccio commented Nov 17, 2023

What does this PR do?

Completes the implementation of nightly CI runs for v2. Builds upon #2348 #2359 #2360.

Motivation

We want to catch any regression during v2 development. Running this nightly will allow to detect them easily.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.

For Datadog employees:

  • If this PR touches code that handles credentials of any kind, such as Datadog API keys, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

@darccio darccio requested review from a team as code owners November 17, 2023 10:20
@darccio darccio force-pushed the dario.castane/AIT-8917/v2-ci-nightlies branch from 91d6494 to 0585d81 Compare November 17, 2023 10:29
@pr-commenter
Copy link

pr-commenter bot commented Nov 17, 2023

Benchmarks

Benchmark execution time: 2023-11-17 14:37:03

Comparing candidate commit 73ea10d in PR branch dario.castane/AIT-8917/v2-ci-nightlies with baseline commit f952c00 in branch main.

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

Comment on lines -110 to -117
- name: Patch dd-trace-go version
if: ${{ inputs.branch_ref == 'refs/heads/v2-dev' }}
run: |
cd utils/build/docker/golang/app
find -type f -name '*.go' -exec sed -i 's#gopkg.in/DataDog/dd-trace-go.v1#github.com/DataDog/dd-trace-go/v2#g' {} \;
echo "replace github.com/DataDog/dd-trace-go/v2 => /home/runner/work/dd-trace-go/dd-trace-go/binaries/dd-trace-go" >> go.mod
go mod tidy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No longer required because we check out the right branch from system-tests already adapted to v2.

Comment on lines +17 to +18
env:
V2_BRANCH: ${{ inputs.ref == 'refs/heads/v2-dev' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The V2_BRANCH allows to customize the execution from main, but also set it to true in v2-dev once this PR is merged into main. This additional modification will make sure all the derived branches from v2-dev run the right CI tests.

Copy link
Contributor

@eliottness eliottness left a comment

Choose a reason for hiding this comment

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

Approval for the appsec workflow change 👍

@darccio darccio merged commit d41f0f9 into main Nov 20, 2023
343 of 344 checks passed
@darccio darccio deleted the dario.castane/AIT-8917/v2-ci-nightlies branch November 20, 2023 08:38
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.

None yet

3 participants