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

[ctx_prof] test tool: generate ctxprof bistream from json #100379

Merged
merged 5 commits into from
Jul 25, 2024

Conversation

mtrofin
Copy link
Member

@mtrofin mtrofin commented Jul 24, 2024

This is a tool to simplify testing. It generates a valid contextual profile file from a json representation.

The tool is authored to allow for future evolution, e.g. if we want to support profile merging or other tasks, not necessarily scoped to testing.

Issue #89287

This is a tool to simplify testing. It generates a valid contextual
profile file from a json representation.

The tool is authored to allow for future evolution, e.g. if we want to
support profile merging or other tasks, not necessarily scoped to testing.
@mtrofin mtrofin requested a review from teresajohnson July 24, 2024 13:50
; EMPTY-NEXT: <Version op0=1/>
; EMPTY-NEXT: </Metadata>

; Note that uin64_t are printed as signed values by llvm-bcanalyzer
Copy link
Contributor

Choose a reason for hiding this comment

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

typo "uin64_t"

Copy link
Member Author

Choose a reason for hiding this comment

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

done

}
return 0;
}
return 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably want to emit an error if it isn't FromJSON

Copy link
Member Author

Choose a reason for hiding this comment

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

the flag mechanism takes care of that, added a test though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably this should be llvm_unreachable then, or have an assert?

[
{
"Guid": 2000,
"Counters": [4, 5]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see these counter values in the tested output

Copy link
Member Author

Choose a reason for hiding this comment

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

I only tested the values for a context, switching to testing the whole output.

},
{
"Guid": 18446744073709551612,
"Counters": [5, 9, 10]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see these counter values in the tested output

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

"Guid": 18446744073709551613,
"Counters": [6, 7, 8]
}
],
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit, can you align the matching brackets?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed - the reference file is indented.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it is github that is making the spacing look off then. Because the end bracket here on line 16 looks to my eyes unaligned with the corresponding open bracket on line 7?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh you meant the json not the xml output. sorry. Misread.

Copy link
Member Author

Choose a reason for hiding this comment

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

used a formatter this time.

Copy link
Contributor

@teresajohnson teresajohnson left a comment

Choose a reason for hiding this comment

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

lgtm with a few suggestions

; Also we have no callee/context at index 0, 2 callsites for index 1, and one for
; index 2.
; RUN: llvm-bcanalyzer --dump %t/valid.bitstream | head -27 > %t.valid.in
; RUN: diff %S/Inputs/valid.expected %t.valid.in
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer the expected to be inlined here like it was earlier, which will be easier to analyze (and give more meaningful error output) on a mismatch.

Copy link
Member Author

@mtrofin mtrofin Jul 25, 2024

Choose a reason for hiding this comment

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

done

"Guid": 18446744073709551613,
"Counters": [6, 7, 8]
}
],
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it is github that is making the spacing look off then. Because the end bracket here on line 16 looks to my eyes unaligned with the corresponding open bracket on line 7?

}
return 0;
}
return 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably this should be llvm_unreachable then, or have an assert?

@mtrofin mtrofin merged commit a737b87 into llvm:main Jul 25, 2024
4 of 6 checks passed
@mtrofin mtrofin deleted the ctx_testing branch July 25, 2024 19:52
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/2313

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe nofile.json 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_CMD
# executed command: not 'z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe' nofile.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_CMD
# RUN: at line 2
not z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe invalidCmd --input nofile.json 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=INVALID_CMD
# executed command: not 'z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe' invalidCmd --input nofile.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=INVALID_CMD
# RUN: at line 3
not z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe fromJSON nofile.json 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FLAG
# executed command: not 'z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe' fromJSON nofile.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FLAG
# RUN: at line 4
not z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe fromJSON --input nofile.json 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FILE
# executed command: not 'z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe' fromJSON --input nofile.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FILE
# .---command stderr------------
# | �[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test:16:12: �[0m�[0;1;31merror: �[0m�[1mNO_FILE: expected string not found in input
# | �[0m; NO_FILE: 'nofile.json': No such file or directory
# | �[0;1;32m           ^
# | �[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
# | �[0m'nofile.json': no such file or directory
# | �[0;1;32m^
# | �[0m
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# | �[1m�[0m�[0;1;30m          1: �[0m�[1m�[0;1;46m'nofile.json': no such file or directory �[0m
# | �[0;1;31mcheck:16     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | �[0m>>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************


mtrofin added a commit to mtrofin/llvm-project that referenced this pull request Jul 25, 2024
Follow up from PR llvm#100379, this is to avoid output
formatting differences.
mtrofin added a commit that referenced this pull request Jul 25, 2024
Follow up from PR #100379, this is to avoid output formatting
differences.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/155/builds/979

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_CMD
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe' nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_CMD
# RUN: at line 2
not c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe invalidCmd --input nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=INVALID_CMD
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe' invalidCmd --input nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=INVALID_CMD
# RUN: at line 3
not c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe fromJSON nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FLAG
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe' fromJSON nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FLAG
# RUN: at line 4
not c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe fromJSON --input nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FILE
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe' fromJSON --input nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FILE
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test:16:12: error: NO_FILE: expected string not found in input
# | ; NO_FILE: 'nofile.json': No such file or directory
# |            ^
# | <stdin>:1:1: note: scanning from here
# | 'nofile.json': no such file or directory
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: 'nofile.json': no such file or directory 
# | check:16     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-multistage running on ppc64le-clang-multistage-test while building llvm at step 11 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/1363

Here is the relevant piece of the build log for the reference:

Step 11 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'Clang Tools :: clang-doc/basic-project.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
Emiting docs in html format.
Mapping decls...
Collecting infos...
Reducing 5 infos...
Generating docs...
Generating assets for docs...

--
Command Output (stderr):
--
RUN: at line 1: rm -rf /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp && mkdir -p /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
+ rm -rf /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp
+ mkdir -p /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
RUN: at line 2: sed 's|$test_dir|/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc|g' /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json > /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ sed 's|$test_dir|/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc|g' /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json
RUN: at line 3: clang-doc --format=html --output=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ clang-doc --format=html --output=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
[1/3] Processing file /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Rectangle.cpp
[2/3] Processing file /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Calculator.cpp
[3/3] Processing file /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Circle.cpp
RUN: at line 4: FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
RUN: at line 5: FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/basic-project.test:64:16: error: HTML-SHAPE: expected string not found in input
// HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:27:53: note: scanning from here
 <p>Defined at line 13 of file ./include/Shape.h</p>
                                                    ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:47:41: note: possible intended match here
 <a href="#12896F9255F880ECD4A6482CCFA58B238FA2CC49">area</a>
                                        ^

Input file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html
Check file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/test/clang-doc/basic-project.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           22:  <div> 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building llvm at step 8 "test-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/193/builds/1343

Here is the relevant piece of the build log for the reference:

Step 8 (test-check-llvm) failure: Test just built components for check-llvm completed (failure)
******************** TEST 'LLVM :: tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe nofile.json 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_CMD
# executed command: not 'c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe' nofile.json
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_CMD
# RUN: at line 2
not c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe invalidCmd --input nofile.json 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=INVALID_CMD
# executed command: not 'c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe' invalidCmd --input nofile.json
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=INVALID_CMD
# RUN: at line 3
not c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe fromJSON nofile.json 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FLAG
# executed command: not 'c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe' fromJSON nofile.json
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FLAG
# RUN: at line 4
not c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe fromJSON --input nofile.json 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FILE
# executed command: not 'c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe' fromJSON --input nofile.json
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FILE
# .---command stderr------------
# | C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test:16:12: error: NO_FILE: expected string not found in input
# | ; NO_FILE: 'nofile.json': No such file or directory
# |            ^
# | <stdin>:1:1: note: scanning from here
# | 'nofile.json': no such file or directory
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: 'nofile.json': no such file or directory 
# | check:16     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/54/builds/1002

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_CMD
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe' nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_CMD
# RUN: at line 2
not c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe invalidCmd --input nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=INVALID_CMD
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe' invalidCmd --input nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=INVALID_CMD
# RUN: at line 3
not c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe fromJSON nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FLAG
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe' fromJSON nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FLAG
# RUN: at line 4
not c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe fromJSON --input nofile.json 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FILE
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe' fromJSON --input nofile.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FILE
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test:16:12: error: NO_FILE: expected string not found in input
# | ; NO_FILE: 'nofile.json': No such file or directory
# |            ^
# | <stdin>:1:1: note: scanning from here
# | 'nofile.json': no such file or directory
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: 'nofile.json': no such file or directory 
# | check:16     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-windows running on premerge-windows-1 while building llvm at step 5 "clean-build-dir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/35/builds/1357

Here is the relevant piece of the build log for the reference:

Step 5 (clean-build-dir) failure: Delete failed. (failure)
Step 8 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe nofile.json 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_CMD
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe' nofile.json
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_CMD
# RUN: at line 2
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe invalidCmd --input nofile.json 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=INVALID_CMD
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe' invalidCmd --input nofile.json
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=INVALID_CMD
# RUN: at line 3
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe fromJSON nofile.json 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FLAG
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe' fromJSON nofile.json
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FLAG
# RUN: at line 4
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe fromJSON --input nofile.json 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FILE
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe' fromJSON --input nofile.json
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FILE
# .---command stderr------------
# | C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test:16:12: error: NO_FILE: expected string not found in input
# | ; NO_FILE: 'nofile.json': No such file or directory
# |            ^
# | <stdin>:1:1: note: scanning from here
# | 'nofile.json': no such file or directory
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: 'nofile.json': no such file or directory 
# | check:16     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-rhel running on ppc64le-clang-rhel-test while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/865

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang Tools :: clang-doc/basic-project.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
Emiting docs in html format.
Mapping decls...
Collecting infos...
Reducing 5 infos...
Generating docs...
Generating assets for docs...

--
Command Output (stderr):
--
RUN: at line 1: rm -rf /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp && mkdir -p /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
+ rm -rf /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp
+ mkdir -p /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
RUN: at line 2: sed 's|$test_dir|/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc|g' /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json > /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ sed 's|$test_dir|/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc|g' /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json
RUN: at line 3: clang-doc --format=html --output=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ clang-doc --format=html --output=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
[1/3] Processing file /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Rectangle.cpp
[2/3] Processing file /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Circle.cpp
[3/3] Processing file /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Calculator.cpp
RUN: at line 4: FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
RUN: at line 5: FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test:64:16: error: HTML-SHAPE: expected string not found in input
// HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:27:53: note: scanning from here
 <p>Defined at line 13 of file ./include/Shape.h</p>
                                                    ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:47:41: note: possible intended match here
 <a href="#12896F9255F880ECD4A6482CCFA58B238FA2CC49">area</a>
                                        ^

Input file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html
Check file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           22:  <div> 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder clang-arm64-windows-msvc running on linaro-armv8-windows-msvc-04 while building llvm at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/161/builds/882

Here is the relevant piece of the build log for the reference:

Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe nofile.json 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_CMD
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe' nofile.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_CMD
# RUN: at line 2
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe invalidCmd --input nofile.json 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=INVALID_CMD
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe' invalidCmd --input nofile.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=INVALID_CMD
# RUN: at line 3
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe fromJSON nofile.json 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FLAG
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe' fromJSON nofile.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FLAG
# RUN: at line 4
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe fromJSON --input nofile.json 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test --check-prefix=NO_FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe' fromJSON --input nofile.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test' --check-prefix=NO_FILE
# .---command stderr------------
# | C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test:16:12: error: NO_FILE: expected string not found in input
# | ; NO_FILE: 'nofile.json': No such file or directory
# |            ^
# | <stdin>:1:1: note: scanning from here
# | 'nofile.json': no such file or directory
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\tools\llvm-ctxprof-util\llvm-ctxprof-util-negative.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: 'nofile.json': no such file or directory 
# | check:16     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************



static cl::SubCommand FromJSON("fromJSON", "Convert from json");

static cl::opt<std::string> InputFilename(
Copy link
Contributor

Choose a reason for hiding this comment

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

As mentioned in #89884 (comment) , cl:: is incompatible with GENERATE_DRIVER. Either remove GENERATE_DRIVER, or move this to Opt.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack, I'll take care of of it. Thanks.

mtrofin added a commit to mtrofin/llvm-project that referenced this pull request Jul 26, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 27, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 9 "test-build-unified-tree-check-clang-extra".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/3505

Here is the relevant piece of the build log for the reference:

Step 9 (test-build-unified-tree-check-clang-extra) failure: test (failure)
******************** TEST 'Clang Tools :: clang-doc/basic-project.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
Emiting docs in html format.
Mapping decls...
Collecting infos...
Reducing 5 infos...
Generating docs...
Generating assets for docs...

--
Command Output (stderr):
--
RUN: at line 1: rm -rf /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp && mkdir -p /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
+ rm -rf /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp
+ mkdir -p /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
RUN: at line 2: sed 's|$test_dir|/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc|g' /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json > /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ sed 's|$test_dir|/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc|g' /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json
RUN: at line 3: clang-doc --format=html --output=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ clang-doc --format=html --output=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
[1/3] Processing file /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Rectangle.cpp
[2/3] Processing file /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Circle.cpp
[3/3] Processing file /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Calculator.cpp
RUN: at line 4: FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
+ FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
RUN: at line 5: FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
+ FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test:64:16: error: HTML-SHAPE: expected string not found in input
// HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
               ^
/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:32:53: note: scanning from here
 <p>Defined at line 13 of file ./include/Shape.h</p>
                                                    ^
/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:47:41: note: possible intended match here
 <a href="#12896F9255F880ECD4A6482CCFA58B238FA2CC49">area</a>
                                        ^

Input file: /b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           27:  <div> 
...

milkice233 pushed a commit to fedora-riscv/llvm that referenced this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants