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

Add initial github actions #53

Merged
merged 4 commits into from
Oct 17, 2019
Merged

Add initial github actions #53

merged 4 commits into from
Oct 17, 2019

Conversation

jdolitsky
Copy link
Collaborator

Currently failing on completion tests - is this expected @marckhouzam? We can start with this and improve from here. Would rather failing CI than no CI :)

With GitHub Actions we are able to upload the Robot test report as a .zip - check out the results here (top right under "Artifacts"): https://github.com/helm/acceptance-testing/commit/b5627d491d534cb6a63002b32c0cc89770e8f76a/checks?check_suite_id=263356948

I's also like to soon address #2 (trigger CI run on helm/helm push).

@jdolitsky jdolitsky force-pushed the gh-actions branch 4 times, most recently from e1640df to d05dcb4 Compare October 13, 2019 23:29
Signed-off-by: Josh Dolitsky <[email protected]>
Copy link
Member

@marckhouzam marckhouzam left a comment

Choose a reason for hiding this comment

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

Nice!


# These tools appear to be in the GitHub "ubuntu-latest" environment, but not in
# the ubuntu:latest image from Docker Hub
if ! [[ -x "$(command -v curl)" || -x "$(command -v pip3)" || -x "$(command -v docker)" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

We now also need to install git for the clone to work.
Of course, the cloning code should be moved down below the installation of git.

which helm || true
mkdir -p /tmp/gopath/src/helm.sh
pushd /tmp/gopath/src/helm.sh
git clone https://github.com/helm/helm.git -b dev-v3
Copy link
Member

Choose a reason for hiding this comment

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

I think you can speed up the clone by adding the flags: --single-branch --depth=1

Comment on lines +3 to +6
on:
push:
branches:
- master
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to have multiple triggers for an action? I believe the two actions are identical except for the trigger.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but this affects the status of the overall build. So for example, if a PR fails the "badge" on the readme would turn red. But I agree, there should be a better way to do this as to not duplicate code

@marckhouzam
Copy link
Member

The completion tests still fail but for a bigger problem. I haven't looked into it but once I have a moment I will. The errors are:

/home/runner/work/acceptance-testing/acceptance-testing/acceptance-testing-reports/e8c50c5941f59d9db432bbe86986e4cff8e637a7/helm-acceptance-completion.wszNaG/completionTests.sh: line 25: 
/home/runner/work/acceptance-testing/acceptance-testing/acceptance-testing-reports/e8c50c5941f59d9db432bbe86986e4cff8e637a7/helm-acceptance-completion.wszNaG/bin/helm: No such file or directory

@jdolitsky
Copy link
Collaborator Author

@marckhouzam going to go ahead with the merge despite the failures, lets iterate on this from here

@jdolitsky jdolitsky merged commit afea609 into master Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants