-
Notifications
You must be signed in to change notification settings - Fork 820
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
CI: website htmltest fix returning error from the loop #1715
Conversation
Build Failed 😱 Build Id: 59a0be80-4b12-4517-a4cb-06d07966a60f To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
An easy and fast way to test the fix:
|
Build Failed 😱 Build Id: 70a00cbe-dfac-426b-8908-09fc8ba6e5eb To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
build/includes/website.mk
Outdated
@@ -63,8 +63,8 @@ hugo-test: site-static-preview | |||
for i in 1 2 3 4 5; \ | |||
do echo "Html Test: Attempt $$i" && \ | |||
docker run --rm -t -e "TERM=xterm-256color" $(common_mounts) $(DOCKER_RUN_ARGS) $(build_tag) bash -c \ | |||
"mkdir -p /tmp/website && cp -r $(mount_path)/site/public /tmp/website/site && htmltest -c $(mount_path)/site/htmltest.yaml /tmp/website" && \ | |||
break || sleep 60; done | |||
"mkdir -p /tmp/website && cp -r $(mount_path)/site/public /tmp/website/site && htmltest -c $(mount_path)/site/htmltest.yaml /tmp/website" && \ |
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.
Super mega minor nit: drop the extra space before -c
But otherwise looks good 👍
Previously htmltest 5 iterations loop returned the result of sleep 60 call. Ideally we should remove last one minute sleep also.
fc4e6b0
to
d9a8cd1
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aLekSer, markmandel 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 |
Build Succeeded 👏 Build Id: 78d5fb2f-5dbc-482d-af34-455d8afe85f3 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Failed 😱 Build Id: 8201ae36-a578-4b48-bfdb-30333b69a0c1 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Previously htmltest 5 iterations loop returned the result of sleep 60 call. Ideally we should remove last one minute sleep also.
Previously
htmltest
5-iterations loop returned the error code of thesleep 60
call, which is always 0.Ideally we should remove last one minute sleep also.
What type of PR is this?
/kind bug
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Closes #1712.
Special notes for your reviewer:
A separate PR with all 404 errors fixes. And this will help to identify that now
htmltest
does not give false positive results always. Merge PR #1716 first. As you can see this PR would fail without website fix merged.