On my system (GNU/Linux, Ubuntu 18.04, Node.js 16.17.0), the npm build command occasionally outputs invalid HTML files.
$ git show --oneline --no-patch
b5fe3efd (HEAD -> master, upstream/master) Create tests for APG design pattern example: Horizontal Multi-Thumb Slider (#511)
$ git status
On branch master
Your branch is ahead of 'bocoup/master' by 174 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
Steps to reproduce:
Build the HTML files five times, saving the output each time:
$ for x in $(seq 5); do npm run build && mv build build-$x; done
Search the five build directories for files with multiple closing HTML tags:
On my system (GNU/Linux, Ubuntu 18.04, Node.js 16.17.0), the
npm build
command occasionally outputs invalid HTML files.Steps to reproduce:
Build the HTML files five times, saving the output each time:
$ for x in $(seq 5); do npm run build && mv build build-$x; done
Search the five build directories for files with multiple closing HTML tags:
$ grep -Ro '</html' build- | uniq -c | sort -n | grep -E '^\s[2-9]'
Expected behavior: the search returns zero results
Actual behavior: the search returns one or more results
For my trial, the search returned:
The symptom is more severe than duplicated closing tags; that just happens to be a straightforward way to detect the problem.
Here's a comparison highlighting the invalidity in one of those files
```diff $ git diff -w --no-index build-1/tests/command-button/reference/2022-4-8_124112/button.html build-2/tests/command-button/reference/2022-4-8_124112/button.html diff --git a/build-1/tests/command-button/reference/2022-4-8_124112/button.html b/build-2/tests/command-button/reference/2022-4-8_124112/button.html index d17cbeb1..8d7a8451 100644 --- a/build-1/tests/command-button/reference/2022-4-8_124112/button.html +++ b/build-2/tests/command-button/reference/2022-4-8_124112/button.html @@ -7,23 +7,7 @@ - - - - +^MCommand Button Example
@@ -48,6 +32,18 @@ Navigate backwards from here