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

convert admin to use same test/lint standard as the main pipelines #682

Merged
merged 3 commits into from Apr 30, 2019

Conversation

antdking
Copy link
Contributor

No description provided.

Anthony King added 2 commits April 30, 2019 15:34
image name has changed, and we use ON_CONCOURSE for the variable
params: {format: oci}
- get: nginx-image
- get: docker-cache/nginx-image
resource: nginx-image
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need Nginx? Pretty sure we just use Puma.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's used by the fake-register

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes ok


for pid in ${pids[*]}; do
wait "$pid" || true # we don't care about the return code of docker loading
wait "$pid"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just out of curiosity, we now care about the return code of docker loading?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, explanation for this one.

This occurred when the cache wasn't populated, and relates to the old line 14.

[[ -f "govwifi-admin-prebuilt/image.tar" ]] && docker load -qi "govwifi-admin-prebuilt/image.tar" & pids[3]=$!

The & pids[3]=$! is run on the whole statement, not just the part after the condition check.
This means that for when the file doesn't exist, the process of that statement will return an exit code of 1 due to the [[ ... ]] returning falsely.

adding wait || true was a hack to work around the issue as I didn't fully understand the cause before.

With the move to globbing, the only issues we'll get are ones we want to raise

@antdking antdking merged commit 8f741bb into master Apr 30, 2019
@antdking antdking deleted the concourse-standardised branch April 30, 2019 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants