Skip to content

Conversation

@alejovicu
Copy link
Contributor

Add shell script to run the shell check task.

This task will be executed by Prow:
openshift/release#1131

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 2, 2018
@yifan-gu
Copy link
Contributor

yifan-gu commented Aug 3, 2018

/ok-to-test

@openshift-ci-robot openshift-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 3, 2018
@yifan-gu
Copy link
Contributor

yifan-gu commented Aug 3, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 3, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alejovicu, yifan-gu

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

The pull request process is described here

Details 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2018
if [ "$IS_CONTAINER" != "" ]; then
find "${1:-.}" -type f -name '*.sh' -exec shellcheck --format=gcc {} \+
else
docker run -e IS_CONTAINER='TRUE' --rm -v "$(pwd)":/workdir:ro --entrypoint sh quay.io/coreos/shellcheck-alpine:v0.5.0 /workdir/hack/shellcheck.sh /workdir;
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think this should use "$(realpath "${DIR}")" instead of "$(pwd)". That way callers could point the containerized check at a specific location if they didn't want to recurse through the whole current working directory. Although with that approach you'd need to either mount this script somewhere else or copy the find command on this line to avoid the script dependency inside the container. Anyway, just ideas for future polishing; nothing to block this PR on.

@wking
Copy link
Member

wking commented Aug 3, 2018

The e2e-aws error was:

2018/08/03 02:55:41 Building bin
2018/08/03 02:58:00 Build bin failed, printing logs:

Pulling image docker-registry.default.svc:5000/ci-op-7f600dw1/pipeline@sha256:1c1bfb32e5ed612e8336e9f5dd18aeb504c65e59cd7d2fa63853eb2c7e6d52c5 ...
error: build error: no such image
2018/08/03 02:58:01 Ran for 2m45s
error: the build bin failed after 2m20s with reason DockerBuildFailed: Docker build strategy has failed.

/retest

@alejovicu
Copy link
Contributor Author

/retest

@wking
Copy link
Member

wking commented Aug 3, 2018

#101 just landed, fixing the yamllint error.

/retest

@openshift-merge-robot openshift-merge-robot merged commit 466487d into openshift:master Aug 3, 2018
@alejovicu alejovicu deleted the CORS-746-2 branch August 3, 2018 14:44
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. 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