Closed eifrach closed 3 years ago
Hi @eifrach. Thanks for your PR.
I'm waiting for a kubevirt member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
/assign @mazzystr
/ok-to-test
@eifrach This is a much cleaner pull req. Thanks for recreating it.
Since we're changing the way the Makefile works we need to update the README.md to reflect those changes. Please add a commit for that.
Then all there is just a few minor changes that need fixed.
More on L161 .... I'm gonna insist that the old script get put back. I had to do locally in order to test make check_spelling
since otherwise I can't test until the CI team takes a look and merges pull/115. In the future if we want to expand the script we have to check it in to project repo ... then test here. That's a pretty bad dependency. We also have to bolt on additional script functions such as |
and ||
to get around file system permissions and give a problem notice to the user. We're in the exact same spot as before with additional complexity and risk.
If you put the old script back we can merge this pretty quick when the minors get fixed.
We can talk about consolidating all the file retrieve code in another issue/pull_req.
@mazzystr all changes has been added
Working now, examples:
$ make run ; podman logs -f website
Makefile: Stop running container
podman rm -f website 2> /dev/null; echo
Makefile: Run site
for i in .jekyll-cache _site Gemfile.lock; do rm -rf ./"${i}" 2> /dev/null; echo -n; done
podman run -d --name website --net=host -v /home/cwilkers/git/kubevirt.github.io:/srv:ro,Z -v /dev/null:/srv/Gemfile.lock:rw,Z --mount type=tmpfs,destination=/srv/_site --mount type=tmpfs,destination=/srv/.jekyll-cache --workdir=/srv localhost/kubevirt-kubevirt.github.io /bin/bash -c "jekyll serve --host=0.0.0.0 --trace --force_polling --future"
623f97604b8ee0f082a7d193ba3e3fe1104ec7b9435b72a5f79aac512b616808
--- Log output truncated ---
done in 3.934 seconds.
Auto-regeneration: enabled for '/srv'
Server address: http://0.0.0.0:4000/
Server running... press ctrl-c to stop.
$ make check_links
--- Output clipped ---
Checks html files for broken external links (This can take a few mins to run) ...
Running ["ScriptCheck", "LinkCheck", "ImageCheck"] on ["./_site"] on *.html...
Checking 1091 external links...
Ran on 366 files!
HTML-Proofer finished successfully.
Checks html files for broken internal links (This can take a few mins to run) ...
Running ["ScriptCheck", "LinkCheck", "ImageCheck"] on ["./_site"] on *.html...
Ran on 366 files!
HTML-Proofer finished successfully.
--- Output clipped ---
$ make check_spelling
Makefile: Stop running container
podman rm -f website 2> /dev/null; echo
623f97604b8ee0f082a7d193ba3e3fe1104ec7b9435b72a5f79aac512b616808
Makefile: Check spelling on site content
YASPELLER file: ./yaspeller.json
Be sure to add changes to upstream: kubevirt/project-infra/master/images/yaspeller/.yaspeller.json
Spelling check:
✗ ./README.md 408 ms
-----
--- Output clipped ---
/test kubevirt-io-presubmit-link-checker
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mazzystr
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Signed-off-by: Eran Ifrach eifrach@redhat.com
What this PR does :