-
Notifications
You must be signed in to change notification settings - Fork 3.4k
workflow: l4lb: pass correct path for PR checkout #20007
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
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.
I would suggest we pass in the whole path (../../pull-request/install/kubernetes/cilium
) as a proper HELM_CHART_DIR
arg to the script, to help make the script and execution context independents, but this works as-is.
c674a3b
to
f6bce0e
Compare
f6bce0e
to
a80b93e
Compare
1337966
to
447291b
Compare
447291b
to
74b9232
Compare
adedd3d
to
74b9232
Compare
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.
LGTM, one nit.
test/l4lb/test.sh
Outdated
@@ -4,7 +4,7 @@ set -eux | |||
|
|||
IMG_OWNER=${1:-cilium} | |||
IMG_TAG=${2:-latest} | |||
PULL_REQUEST_CHECKOUT=${3:-../..} | |||
HELM_CHART_DIR=${3:-/vagrant/pull-request/install/kubernetes/cilium} |
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.
For backward compatibility:
HELM_CHART_DIR=${3:-/vagrant/pull-request/install/kubernetes/cilium} | |
HELM_CHART_DIR=${3:-/vagrant/install/kubernetes/cilium} |
test/nat46x64/test.sh
Outdated
@@ -4,7 +4,7 @@ set -eux | |||
|
|||
IMG_OWNER=${1:-cilium} | |||
IMG_TAG=${2:-latest} | |||
PULL_REQUEST_CHECKOUT=${3:-../..} | |||
HELM_CHART_DIR=${3:-/vagrant/pull-request/install/kubernetes/cilium} |
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.
Likewise.
74b9232
to
ecaf703
Compare
Passing ${{ github.workspace }}/pull-request to the init.sh script as path of the PR checkout is incorrect, as inside the VM the repository will be under a different path. Instead of that, pass the correct absolute path for the PR checkout. Moreover, checkout first the upstream repo (under cilium/cilium) and only after that the PR one (under cilium/cilium/pull-request), as otherwise the upstream checkout will nuke the directory with PR one. Fixes: #19953 Signed-off-by: Gilberto Bertin <jibi@cilium.io>
ecaf703
to
af5273a
Compare
Passing ${{ github.workspace }}/pull-request to the init.sh script as path of the PR checkout is incorrect, as inside the VM the repository will be under a different path. Instead of that, pass the correct absolute path for the PR checkout. Moreover, checkout first the upstream repo (under cilium/cilium) and only after that the PR one (under cilium/cilium/pull-request), as otherwise the upstream checkout will nuke the directory with PR one. This PR includes only the changes related to test/l4lb/test.sh, as the workflow is being updated on the master PR #20007. Fixes: #20004 Signed-off-by: Gilberto Bertin <jibi@cilium.io>
Passing ${{ github.workspace }}/pull-request to the init.sh script as path of the PR checkout is incorrect, as inside the VM the repository will be under a different path. Instead of that, pass the correct absolute path for the PR checkout. Moreover, checkout first the upstream repo (under cilium/cilium) and only after that the PR one (under cilium/cilium/pull-request), as otherwise the upstream checkout will nuke the directory with PR one. This PR includes only the changes related to test/l4lb/test.sh, as the workflow is being updated on the master PR #20007. Fixes: #20003 Signed-off-by: Gilberto Bertin <jibi@cilium.io>
Passing ${{ github.workspace }}/pull-request to the init.sh script as path of the PR checkout is incorrect, as inside the VM the repository will be under a different path. Instead of that, pass the correct absolute path for the PR checkout. Moreover, checkout first the upstream repo (under cilium/cilium) and only after that the PR one (under cilium/cilium/pull-request), as otherwise the upstream checkout will nuke the directory with PR one. This PR includes only the changes related to test/l4lb/test.sh, as the workflow is being updated on the master PR #20007. Fixes: #20003 Signed-off-by: Gilberto Bertin <jibi@cilium.io>
Passing ${{ github.workspace }}/pull-request to the init.sh script as path of the PR checkout is incorrect, as inside the VM the repository will be under a different path. Instead of that, pass the correct absolute path for the PR checkout. Moreover, checkout first the upstream repo (under cilium/cilium) and only after that the PR one (under cilium/cilium/pull-request), as otherwise the upstream checkout will nuke the directory with PR one. This PR includes only the changes related to test/l4lb/test.sh, as the workflow is being updated on the master PR #20007. Fixes: #20004 Signed-off-by: Gilberto Bertin <jibi@cilium.io>
Passing ${{ github.workspace }}/pull-request to the init.sh script as
path of the PR checkout is incorrect, as inside the VM the repository
will be under a different path.
Instead of that, pass the correct absolute path for the PR checkout.
Moreover, checkout first the upstream repo (under cilium/cilium) and
only after that the PR one (under cilium/cilium/pull-request), as
otherwise the upstream checkout will nuke the directory with PR one.
Fixes: #19953