-
Notifications
You must be signed in to change notification settings - Fork 10
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
[nodejs@noop_proxy_name] WIP Try to get TARGET_BRANCH from PR's title #3675
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a handy feature to me 👍
id: extract | ||
shell: bash | ||
run: | | ||
branch=$(echo "${{ inputs.text }}" | grep -ioP '(?<=\[java|dotnet|python|ruby|php|golang|cpp|agent|nodejs)@.+?\]' | tr -d '[:space:]' || true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we limit this to supported lang, and explicitly fail if it's not in the supported list?
I'm 100% someone will try to use one of them, and will struggle to understand why it's not working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let me try
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added assert_target_branch_is_not_set
to force fail if the unsupported libs try to specify a target branch
name: Fail if target branch is specified | ||
needs: | ||
- get_dev_artifacts | ||
if: needs.get_dev_artifacts.outputs.target-branch != '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you tested ? I don;t understand where the output of the get_dev_artifacts
job is set 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been modified to output the steps.get-target-branch.outputs.target-branch
value (lines 66 and 67)
Motivation
Allow testing of tracer branches that are under development by specifying the branch in the PR's title with
[target_language@branch_name_to_test]
Changes
get_target_branch
github action to extract branch from PR's title$TARGET_BRANCH
env var and use it instead the hardcoded "master" branch.system_tests
job name to include target-branch if anyfail-if-target-branch
job which fails if PR title contains a target branch to avoid merging ST PRs without testing the real main/master branchNotes
It is working for cpp, agent, nodejs, ruby and python
Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present