Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

ci: spell check: fix inverted test#2240

Merged
GabyCT merged 1 commit intokata-containers:masterfrom
grahamwhaley:20200120_spellcheck_fix
Jan 21, 2020
Merged

ci: spell check: fix inverted test#2240
GabyCT merged 1 commit intokata-containers:masterfrom
grahamwhaley:20200120_spellcheck_fix

Conversation

@grahamwhaley
Copy link
Copy Markdown
Contributor

During the merge of #2228 the final check in the spell check got
inverted - fix with a || true.

Fixes: #2239

Signed-off-by: Graham Whaley graham.whaley@intel.com

Copy link
Copy Markdown

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @grahamwhaley.

lgtm

@jodh-intel
Copy link
Copy Markdown

/test

bergwolf added a commit to bergwolf/kata-documentation that referenced this pull request Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Depends-on: kata-containers/tests#2240
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
bergwolf added a commit to bergwolf/kata-documentation that referenced this pull request Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Depends-on: github.com/kata-containers/tests#2240
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
@chavafg
Copy link
Copy Markdown
Contributor

chavafg commented Jan 20, 2020

Seems like something got broken in ARM node:

04:52:08 ~/workspace/kata-containers-tests-ARM-18.04-PR/go/src/github.com/kata-containers/tests ~/workspace/kata-containers-tests-ARM-18.04-PR/go/src/github.com/kata-containers/tests
04:52:08 mktemp: failed to create directory via template ‘/tmp/kata-containers/install-go-tmp.XXXXXXXXXX’: No such file or directory

/cc @Pennyzct

@grahamwhaley
Copy link
Copy Markdown
Contributor Author

I guess maybe mktemp does not create the full dir path if it does not exist. So, we probably want to do that in the CI startup scripts - if they find TMPDIR set, then ensure that dir actually exists before running the tests.

done

[ $docs_failed -ne 0 ] && die "spell check failed, See https://github.com/kata-containers/documentation/blob/master/Documentation-Requirements.md#spelling for more information."
[ $docs_failed -ne 0 ] && die "spell check failed, See https://github.com/kata-containers/documentation/blob/master/Documentation-Requirements.md#spelling for more information." || true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this could be:

[ $docs_failed -eq 0 ] || die "spell check failed..."

and will save us one operation, wdyt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good call. I think I have 'script blindness'..... heh, so, I had to rewrite the commit message as well.... pushed!

@grahamwhaley
Copy link
Copy Markdown
Contributor Author

(slightly off topic for this PR... but) - @Pennyzct - btw, watch out for code like this

TMP_DIR=$(mktemp -d --tmpdir=/tmp ${testname}.XXX)

which will over-ride your TMPDIR efforts. I don't think we have a lot of them, but I expect a few.
And (un)usefully github will not let you do searches with 'special characters' in them, so I cannot do a quick search of all our repos to try and find them....

@grahamwhaley
Copy link
Copy Markdown
Contributor Author

This is a slightly more useful search though:

https://github.com/search?q=org%3Akata-containers+tmpdir+mktemp&type=Code

During the merge of kata-containers#2228 the final check in the spell check got
inverted - fix with a nice test inversion.

Fixes: kata-containers#2239

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
@grahamwhaley grahamwhaley force-pushed the 20200120_spellcheck_fix branch from c308619 to e7d8afd Compare January 20, 2020 15:52
@chavafg
Copy link
Copy Markdown
Contributor

chavafg commented Jan 20, 2020

/test-ubuntu

@GabyCT GabyCT merged commit be83104 into kata-containers:master Jan 21, 2020
bergwolf added a commit to bergwolf/kata-documentation that referenced this pull request Mar 16, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Depends-on: github.com/kata-containers/tests#2240
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: docs: fix spell check test failure

4 participants