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

Don't assume $0 is the script source #1808

Merged

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Jan 6, 2020

Changes

Don't assume $0 is the script source

Part of our 'downstream' CI we reuse the test/e2e-common.sh functions.

We have a script that source the test/e2e-common.sh and run with the downstream
specifics functions.

$0 in the e2e-common assume the script is run from test/e2e-tests.sh when our
script which source test/e2e-tests.sh is something else somewhere else.

Let use git to safely detect the toplevel of the directory from where we can
source the vendor directory.

Remove latest go get from there too

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

Reviewer Notes

Release Notes

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jan 6, 2020
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 6, 2020
@chmouel chmouel force-pushed the dont-assume-dollar-zero-is-topdir branch from e68888a to 302610d Compare January 6, 2020 14:31
@tekton-robot tekton-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 6, 2020
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 6, 2020
chmouel added a commit to openshift-pipelines/plumbing that referenced this pull request Jan 8, 2020
Part of our 'downstream' CI we reuse the `test/e2e-common.sh` functions, we have
a script that source the test/e2e-common.sh and run with the downstream
specifics functions.

$0 in the e2e-common assume the script is run from `test/e2e-tests.sh` when our
script which source test/e2e-tests.sh is something else somewhere else.

Let's use git to safely detect the toplevel of the directory

Signed-off-by: Chmouel Boudjnah <[email protected]>
Following commit 2af394c there was a `go
get` left which wasnt removed.

Since we have it in vendor directory we don't need to donwload it again.

Signed-off-by: Chmouel Boudjnah <[email protected]>
@chmouel chmouel force-pushed the dont-assume-dollar-zero-is-topdir branch from 302610d to bf11611 Compare January 9, 2020 15:06
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 9, 2020
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 9, 2020
@imjasonh
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2020
@tekton-robot tekton-robot merged commit d5c6e64 into tektoncd:master Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants