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

CI: website htmltest fix returning error from the loop #1715

Merged
merged 1 commit into from
Jul 28, 2020

Conversation

aLekSer
Copy link
Collaborator

@aLekSer aLekSer commented Jul 24, 2020

Previously htmltest 5-iterations loop returned the error code of the sleep 60 call, which is always 0.
Ideally we should remove last one minute sleep also.

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix

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.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 59a0be80-4b12-4517-a4cb-06d07966a60f

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@aLekSer aLekSer added the area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. label Jul 24, 2020
@aLekSer
Copy link
Collaborator Author

aLekSer commented Jul 24, 2020

An easy and fast way to test the fix:

hugo-test2:
	for i in 1 2; \
		do echo "Html Test: Attempt $$i" && \
		  docker run --rm -t -e "TERM=xterm-256color" $(common_mounts) $(DOCKER_RUN_ARGS) $(build_tag) bash -c \
			"ssl && errorCode=$? && echo $(errorCode)" && \
	break || sleep 1 && false ; done; 

hugo-test3:
	for i in 1 2; \
		do echo "Html Test: Attempt $$i" && \
		  docker run --rm -t -e "TERM=xterm-256color" $(common_mounts) $(DOCKER_RUN_ARGS) $(build_tag) bash -c \
			"ls && errorCode=$? && echo $(errorCode)" && \
	break || sleep 1 && false ; done; 

make hugo-test2 would return echo $? 1 while hugo-test3 - 0.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 70a00cbe-dfac-426b-8908-09fc8ba6e5eb

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@@ -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" && \
Copy link
Member

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.
@aLekSer aLekSer force-pushed the ci/fix-htmltest-err branch from fc4e6b0 to d9a8cd1 Compare July 28, 2020 17:19
@google-oss-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/1715/head:pr_1715 && git checkout pr_1715
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.8.0-d9a8cd1

@aLekSer aLekSer merged commit 1f06ec3 into googleforgames:master Jul 28, 2020
@aLekSer aLekSer deleted the ci/fix-htmltest-err branch July 28, 2020 17:43
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 8201ae36-a578-4b48-bfdb-30333b69a0c1

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel markmandel added this to the 1.8.0 milestone Aug 11, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
Previously htmltest 5 iterations loop returned the result of sleep 60 call.
Ideally we should remove last one minute sleep also.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. cla: yes lgtm size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: htmltest with 404 status does not treated as a failure on make hugo-test step
5 participants