Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0 |
|
#
eec1ee8e |
| 09-Sep-2024 |
Abhina Sree <Abhina.Sreeskantharajan@ibm.com> |
[SystemZ][z/OS] Enable lit testing for z/OS (#107631)
This patch fixes various errors to enable llvm-lit to run on z/OS
|
Revision tags: llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init, llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4 |
|
#
b71edfaa |
| 15-May-2023 |
Tobias Hieta <tobias@hieta.se> |
[NFC][Py Reformat] Reformat python files in llvm
This is the first commit in a series that will reformat all the python files in the LLVM repository.
Reformatting is done with `black`.
See more in
[NFC][Py Reformat] Reformat python files in llvm
This is the first commit in a series that will reformat all the python files in the LLVM repository.
Reformatting is done with `black`.
See more information here:
https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style
Reviewed By: jhenderson, JDevlieghere, MatzeB
Differential Revision: https://reviews.llvm.org/D150545
show more ...
|
Revision tags: llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init, llvmorg-14.0.6, llvmorg-14.0.5, llvmorg-14.0.4, llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1, llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2, llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2, llvmorg-13.0.1-rc1, llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2, llvmorg-13.0.0-rc1, llvmorg-14-init, llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2, llvmorg-12.0.1-rc1, llvmorg-12.0.0, llvmorg-12.0.0-rc5, llvmorg-12.0.0-rc4, llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2, llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2 |
|
#
302432f7 |
| 15-Jan-2021 |
Julian Lettner <julian.lettner@apple.com> |
Reland "[lit] Use os.cpu_count() to cleanup TODO"
The initial problem with the remaining bot config was resolved.
We can now use Python3. Let's use `os.cpu_count()` to cleanup this helper.
Differ
Reland "[lit] Use os.cpu_count() to cleanup TODO"
The initial problem with the remaining bot config was resolved.
We can now use Python3. Let's use `os.cpu_count()` to cleanup this helper.
Differential Revision: https://reviews.llvm.org/D94734
show more ...
|
#
db1a7089 |
| 25-Jan-2021 |
Julian Lettner <julian.lettner@apple.com> |
Revert "[lit] Use os.cpu_count() to cleanup TODO"
A bot owner contacted me. I will re-land after confirming that this doesn't break anyone (since it's low priority).
This reverts commit 9946b169c3
Revert "[lit] Use os.cpu_count() to cleanup TODO"
A bot owner contacted me. I will re-land after confirming that this doesn't break anyone (since it's low priority).
This reverts commit 9946b169c379daee603436a4753acfef8be373dd.
show more ...
|
#
9946b169 |
| 15-Jan-2021 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Use os.cpu_count() to cleanup TODO
We can now use Python3. Let's use `os.cpu_count()` to cleanup this helper.
Differential Revision: https://reviews.llvm.org/D94734
|
Revision tags: llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2, llvmorg-11.0.1-rc1, llvmorg-11.0.0, llvmorg-11.0.0-rc6, llvmorg-11.0.0-rc5, llvmorg-11.0.0-rc4, llvmorg-11.0.0-rc3, llvmorg-11.0.0-rc2, llvmorg-11.0.0-rc1, llvmorg-12-init, llvmorg-10.0.1, llvmorg-10.0.1-rc4, llvmorg-10.0.1-rc3, llvmorg-10.0.1-rc2, llvmorg-10.0.1-rc1 |
|
#
11e02d5c |
| 01-May-2020 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Only update specific fields from remote test object
Don't update whole test object from the remote (pickled) finished test object. Doing so also changes the config and suite members, which we
[lit] Only update specific fields from remote test object
Don't update whole test object from the remote (pickled) finished test object. Doing so also changes the config and suite members, which we want to avoid.
show more ...
|
#
23f896a0 |
| 14-Apr-2020 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Update local test objects "in place" from remote test objects
Update local test object "in place" from remote test object. We need to do this to ensure that discovered test object which is us
[lit] Update local test objects "in place" from remote test objects
Update local test object "in place" from remote test object. We need to do this to ensure that discovered test object which is used for printing test results reflect the changes.
> Why are we sending back the whole test object from the worker process > (lit.worker.execute) instead of just the result?
Unfortunately, the test result is not the only "result" of test execution. Other members (e.g., xfails, requires) of the Test class are set only during execution. Those members affect the behavior of `isExpectedToFail` and `setResult`, and are accessed when printing results. For example, xunit.xml test results include missing features for "skip reasons". The lack of separation between an immutable "test definition" and "generated outputs" (including the primary result and other secondary state) is unfortunate historical design decision in lit.
> Why do we update the initial test object instead of just discarding it > and continuing with the pickled test object?
Both of these approaches would work. However, note that we need a fully populated test object for printing results. Updating the existing one seems to be the easier path.
show more ...
|
Revision tags: llvmorg-10.0.0, llvmorg-10.0.0-rc6, llvmorg-10.0.0-rc5, llvmorg-10.0.0-rc4, llvmorg-10.0.0-rc3, llvmorg-10.0.0-rc2, llvmorg-10.0.0-rc1, llvmorg-11-init, llvmorg-9.0.1, llvmorg-9.0.1-rc3, llvmorg-9.0.1-rc2, llvmorg-9.0.1-rc1, llvmorg-9.0.0, llvmorg-9.0.0-rc6, llvmorg-9.0.0-rc5, llvmorg-9.0.0-rc4, llvmorg-9.0.0-rc3, llvmorg-9.0.0-rc2, llvmorg-9.0.0-rc1, llvmorg-10-init, llvmorg-8.0.1, llvmorg-8.0.1-rc4, llvmorg-8.0.1-rc3, llvmorg-8.0.1-rc2, llvmorg-8.0.1-rc1, llvmorg-8.0.0, llvmorg-8.0.0-rc5, llvmorg-8.0.0-rc4 |
|
#
cbe42a9d |
| 08-Mar-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Add SKIPPED test result category
Track and print the number of skipped tests. Skipped tests are tests that should have been executed but weren't due to: * user interrupt [Ctrl+C] * --max-
[lit] Add SKIPPED test result category
Track and print the number of skipped tests. Skipped tests are tests that should have been executed but weren't due to: * user interrupt [Ctrl+C] * --max-time (overall lit timeout) * --max-failures
This is part of a larger effort to ensure that all discovered tests are properly accounted for.
Add test for overall lit timeout feature (`--max-time` option) to observe skipped tests. Extend test for `--max-failures` option.
Reviewed By: jdenny
Differential Revision: https://reviews.llvm.org/D77819
show more ...
|
#
38edab1c |
| 07-Apr-2020 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Improve handling of parallelism group semaphores
|
#
6f8c4506 |
| 24-Oct-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Cleanly exit on user keyboard interrupt
Graceful lit shutdown on user keyboard interrupt [Ctrl+C] was a longstanding goal of mine. After a few refactorings this revision finally enables it.
[lit] Cleanly exit on user keyboard interrupt
Graceful lit shutdown on user keyboard interrupt [Ctrl+C] was a longstanding goal of mine. After a few refactorings this revision finally enables it. We use the following strategy to deal with KeyboardInterrupt: https://noswap.com/blog/python-multiprocessing-keyboardinterrupt
Printing of a helpful summary for interrupted runs (just as the one for completed runs) will be tackled in future revisions.
Reviewed By: serge-sans-paille, rnk
Differential Revision: https://reviews.llvm.org/D77365
show more ...
|
#
cab904c6 |
| 02-Apr-2020 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Remove unnecessary indirection in progress_callback
On shutdown, the result complete handler is not racing with the main thread anymore because we are now always waiting for process pool termi
[lit] Remove unnecessary indirection in progress_callback
On shutdown, the result complete handler is not racing with the main thread anymore because we are now always waiting for process pool termination via ``` finally: pool.join() ```
show more ...
|
Revision tags: llvmorg-8.0.0-rc3 |
|
#
c3ef971d |
| 27-Feb-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Improve handling of timeouts and max failures
This work prepares us for the overall goal of clean shutdown on user keyboard interrupt [Ctrl+C].
|
#
f3c32998 |
| 24-Oct-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Remove single process mode
Remove the "serial run" abstraction which bypasses Python's `multiprocessing.Pool` and instead directly runs tests without spawning worker processes. This abstracti
[lit] Remove single process mode
Remove the "serial run" abstraction which bypasses Python's `multiprocessing.Pool` and instead directly runs tests without spawning worker processes. This abstraction has not offered the benefits I hoped it would and therefore does not carry its weight.
show more ...
|
#
357a17e2 |
| 24-Oct-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Send back whole lit.Test object from worker process
In previous commits [1,2] I changed worker.py to only send back the test result from the worker process instead of the whole test object. T
[lit] Send back whole lit.Test object from worker process
In previous commits [1,2] I changed worker.py to only send back the test result from the worker process instead of the whole test object. This was a mistake. lit.Test contains fields (e.g., xfials, requires, unsupported) that are only populated when we actually execute the test, but are queried when we report the results in the parent process. This commit essentially reverts the following changes:
[1] a3d2f9b53ac006cb972b61b0dbfcb5babe4356bf [2] 17bb660fb83e869652ac87b145b0e26b708aab60
show more ...
|
#
00ffa744 |
| 26-Feb-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] max_failures does not need to be stored in LitConfig
|
#
cf252240 |
| 26-Feb-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Small cleanups. NFCI
Remove unnecessary (argument same as default), cleanup imports, use "pythonic" names for variables, and general formatting.
|
#
54a9b4c0 |
| 12-Nov-2019 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Better/earlier errors for empty runs
Fail early, when we discover no tests at all, or filter out all of them.
There is also `--allow-empty-runs` to disable test to allow workflows like `LIT_F
[lit] Better/earlier errors for empty runs
Fail early, when we discover no tests at all, or filter out all of them.
There is also `--allow-empty-runs` to disable test to allow workflows like `LIT_FILTER=abc ninja check-all`. Apparently `check-all` invokes lit multiple times if certain projects are enabled, which would produce unwanted "empty runs". Specify via `LIT_OPTS=--allow-empty-runs`.
There are 3 causes for empty runs: 1) No tests discovered. This is always an error. Fix test suite config or command line. 2) All tests filtered out. This is an error by default, but can be suppressed via `--alow-empty-runs`. Should prevent accidentally passing empty runs, but allow the workflow above. 3) The number of shards is greater than the number of tests. Currently, this is never an error. Personally, I think we should consider making this an error by default; if this happens, you are doing something wrong. I added a warning but did not change the behavior, since this warrants more discussion.
Reviewed By: atrick, jdenny
Differential Revision: https://reviews.llvm.org/D70105
show more ...
|
#
d77ef856 |
| 05-Nov-2019 |
Julian Lettner <julian.lettner@apple.com> |
Revert "[lit] Better/earlier errors when no tests are executed"
This reverts commit d8f2bff75126c6dde694ad245f9807fa12ad5630.
|
#
bd14bb42 |
| 26-Feb-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Move measurement of testing time out of Run.execute
|
#
d8f2bff7 |
| 02-Nov-2019 |
Julian Lettner <julian.lettner@apple.com> |
[lit] Better/earlier errors when no tests are executed
Fail early, when we discover no tests at all, or filter out all of them.
|
#
3dec3085 |
| 30-Oct-2019 |
Reid Kleckner <rnk@google.com> |
[lit] Add missing import
Apparently llvm-lit.py does not execute this path
|
#
5632d375 |
| 30-Oct-2019 |
Reid Kleckner <rnk@google.com> |
[lit] Silence warning about importing the resource module on Windows
lit was printing this warning on every test run on Windows, and that is not necessary.
|
#
4dba95f0 |
| 23-Feb-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Extract `_install_win32_signal_handler` function
|
#
f3ad8ae7 |
| 21-Feb-2019 |
Julian Lettner <julian.lettner@gmail.com> |
[lit] Move sharding logic into separate function
|
#
b94ac8a2 |
| 22-Oct-2019 |
Julian Lettner <jlettner@apple.com> |
[lit] Move increase_process_limit to ParallelRun
Increasing the process limit only makes sense when we use multiple processes.
llvm-svn: 375474
|