Skip to content

Adding .NET Support for Target Branch Testing #5024

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

Merged
merged 7 commits into from
Aug 19, 2025

Conversation

link04
Copy link
Contributor

@link04 link04 commented Aug 4, 2025

Motivation

.NET was not able to run PR specific changes against system test so I am just trying to make it possible.

Changes

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • If PR title starts with [<language>], double-check that only <language> is impacted by the change
  • No system-tests internal is modified. Otherwise, I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added (or removed)?

link04 added a commit to DataDog/dd-trace-dotnet that referenced this pull request Aug 12, 2025
## Summary of changes
Adding new stage to check if a label has been added to the PR for Azure
to decide wether a Docker image should be created based on the PR or
not(currently we only do it for master after each merge).

- Related system test PR where I tested the image being used correctly(a
4 lines change):
DataDog/system-tests#5024
- Location where the image gets used and all tests pass: 

https://github.com/DataDog/system-tests/actions/runs/16763951714/job/47465265591?pr=5024#step:7:72

## Reason for change
For us to be able to review/merge system-test PRs with higher confidence
and remove the need to run locally for cases where the user may not
want/need to.

## Implementation details
Updated the action, workflow and pipeline files needed to take into
account the label and use the branch name instead.

## Test coverage
This is the test, the first commits add the docker image and tag it as
expected:
[Location](https://github.com/DataDog/dd-trace-dotnet/pkgs/container/dd-trace-dotnet%2Fdd-trace-dotnet)
The last commit makes sure the image gets deleted when this PR(with its
label) closes, so the above should not have it anymore:
[Location](https://github.com/DataDog/dd-trace-dotnet/pkgs/container/dd-trace-dotnet%2Fdd-trace-dotnet)

There could still be a scenario where the label gets removed and then
the PR closed where the image could still remain but I doubt any of us
would that...
@link04 link04 changed the title [dotnet@maximo/label-based-artifacts] Adding .NET Support for Target Branch Testing Adding .NET Support for Target Branch Testing Aug 12, 2025
@link04 link04 force-pushed the maximo/target-branch-for-dotnet branch from 7823d6e to 24f1475 Compare August 12, 2025 19:51
@link04 link04 force-pushed the maximo/target-branch-for-dotnet branch from 7b19c40 to f6d9645 Compare August 12, 2025 19:58
@link04 link04 marked this pull request as ready for review August 12, 2025 20:01
@link04 link04 requested a review from a team as a code owner August 12, 2025 20:01
@link04 link04 changed the title Adding .NET Support for Target Branch Testing [dotnet]Adding .NET Support for Target Branch Testing Aug 12, 2025
@link04 link04 added the dotnet Pull requests that update .NET code label Aug 12, 2025
Copy link
Member

@lucaspimentel lucaspimentel left a comment

Choose a reason for hiding this comment

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

thanks!

@link04 link04 enabled auto-merge (squash) August 12, 2025 21:49
@link04 link04 disabled auto-merge August 12, 2025 21:56
@link04 link04 changed the title [dotnet]Adding .NET Support for Target Branch Testing Adding .NET Support for Target Branch Testing Aug 13, 2025
@link04 link04 marked this pull request as draft August 13, 2025 00:50
@link04 link04 marked this pull request as ready for review August 13, 2025 00:53
@link04 link04 enabled auto-merge (squash) August 13, 2025 00:53
@link04 link04 removed the dotnet Pull requests that update .NET code label Aug 18, 2025
@link04 link04 disabled auto-merge August 18, 2025 17:37
@cbeauchesne cbeauchesne merged commit 2c8457d into main Aug 19, 2025
1899 of 1914 checks passed
@cbeauchesne cbeauchesne deleted the maximo/target-branch-for-dotnet branch August 19, 2025 14:30
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.

6 participants