about summary refs log tree commit diff
path: root/src/ci/docker/scripts/fuchsia-test-runner.py
AgeCommit message (Collapse)AuthorLines
2024-12-04Reformat Python code with `ruff`Jakub Beránek-5/+3
2024-10-25Fix indentationTyler Mandry-2/+2
2024-10-25Update Fuchsia CI script for package servingClayton Wilkinson-30/+22
This updates the "start" and "stop" methods of the test runner to use the standalone package server.
2024-10-15Make fuchsia-test-runner.py compatible with new JSON output from llvm-readelfc6c7-11/+31
[A recent commit in LLVM](https://github.com/llvm/llvm-project/commit/ab930ee7cad8b8bf7968bb8d0c0d72524e2313c4) modified the JSON output of LLVM. The LLVM change renamed "Notes" to "NoteSections" and inserted a new "Notes" key nested under each "NoteSection". This change shores up exceptions around reading the JSON output of llvm-readelf and reads from "NoteSections" instead of the non-existent "Notes".
2024-08-07Fuchsia Test Runner: enable ffx repository serverJeff Martin-0/+13
The default repository server setting has changed on Fuchsia (default is newly "false"). Now, in order to start the repository server, the config `repository.server.enabled` must be set to true.
2024-07-07[fuchsia-test-runner] Reformat fuchsia-test-runner.pyCharles Celerier-37/+15
Applied formatting suggestions from isort and black via pylsp.
2024-07-07[fuchsia-test-runner] Remove runner logs from stdout and stderrCharles Celerier-9/+2
Many tests use stdout and stderr to validate whether the test emitted the correct output. Because fuchsia-test-runner.py was sending all logs, including test output, to stdout, tests could not validate output properly. This change removes the runner logs from stdout and stderr entirely with the exception of output from the test. All runner logs are still available in the "log" file. Fixed: https://fxbug.dev/351356417
2024-06-21[fuchsia-test-runner] Remove usage of kw_onlyMiguel Flores Ruiz de Eguino-1/+1
We are still at Python 3.8 in Fuchsia infra. This was introduced at Python 3.10.
2024-06-17Sync fuchsia test runner with clang test runnerErick Tryzelaar-386/+628
This synchronizes the fuchsia test running code with the clang test runner. This brings with it: * Improved logging * Uses the fuchsia image from the SDK version * Caches the product bundle across test runs * Strips the binaries to reduce the data sent to the emulator
2024-06-13Update fuchsia commit, and SDK to 21.20240610.2.1Erick Tryzelaar-1/+1
This includes a fix to the race when publishing multiple packages at the same time.
2024-05-07Fuchsia test runner: fixup scriptMarc Khouri-87/+93
This commit fixes several issues in the fuchsia-test-runner.py script: 1. Migrate from `pm` to `ffx` for package management, as `pm` is now deprecated. Furthermore, the `pm` calls used in this script no longer work at Fuchsia's HEAD. This is the largest change in this commit, and impacts all steps around repository management (creation and registration of the repo, as well as package publishing). 2. Allow for `libtest` to be either statically or dynamically linked. The script assumed it was dynamically linked, but the current Rust behavior at HEAD is to statically link it. 3. Minor cleanup to use `ffx --machine json` rather than string parsing. 4. Minor cleanup to the docs around the script.
2024-04-13Bump Fuchsia versionsErick Tryzelaar-1/+1
This updates the Fuchsia commit used in `auto - x86_64-gnu-integration` CI bot to use the Rust commit 703dc9ce64d9b31a239a7280d9b5f9ddd85ffed6. This should help improve the coverage of this builder. It also updates the SDK version to F20.20240412.3.1, and the Fuchsia Clang version to c777c011a709dffd4fa5e79cad7947b7c3405d02.
2023-11-10Switch `fuchsia-test-runner.py` to `ffx product`Erick Tryzelaar-7/+41
The subcommand `ffx product-bundle` has been removed, and replaced with the subcommand `ffx product`. This changes `fuchsia-test-runner.py` to use it to download the SDK and product bundle for the latest release of Fuchsia.
2023-08-02Fix recent python linting errorsTrevor Gross-4/+2
- Remove unneeded imports in 'fuscia-test-runner.py' - Add explicit stacklevel to 'x.py' - Fix mutable types as default args in `bootstrap.py` and `bootstrap_test.py`
2023-06-19Rollup merge of #112499 - tgross35:py-ruff-fixes, r=Mark-SimulacrumMichael Goulet-2/+2
Fix python linting errors These were flagged by `ruff`, run using the config in https://github.com/rust-lang/rust/pull/112482
2023-06-16Apply changes to fix python linting errorsTrevor Gross-2/+2
2023-06-16Replace fvdl with ffx, allow test without installDavid Koloski-145/+92
Along with replacing fvdl uses with the equivalent ffx commands, this also switches from using the install path for libstd-*.so and libtest-*.so to using the build directory (now passed on the command line). The user no longer needs to run x.py install before running tests now, and the correct libstd and libtest are detected on run instead of startup so the test runner can handle recompilations after starting the testing environment.
2023-06-15Add support for test tmpdir to fuchsia test runnerDavid Koloski-6/+7
Also format the script to keep the code nice.
2023-05-03Use builtin FFX isolation for Fuchsia test runnerDavid Koloski-92/+45
FFX has new builtin support for isolating the daemon's environment. This switches the manual isolation originally written to that new builtin feature.
2023-03-01Run compiler test suite in parallel on FuchsiaDavid Koloski-13/+26
2023-02-24Update `fuchsia-test-runner.py` and docsDavid Koloski-13/+69
This updates the test runner to the latest version of the SDK and fixes debugging support for Rust source code.
2023-02-02Use triple rather than arch for fuchsia test runnerJoseph Ryan-28/+23
2023-01-05Add vendor to Fuchsia's target tripleDavid Koloski-3/+3
Historically, Rust's Fuchsia targets have been labeled x86_64-fuchsia and aarch64-fuchsia. However, they should technically contain vendor information. This CL changes Fuchsia's target triples to include the "unknown" vendor since Clang now does normalization and handles all triple spellings. This was previously attempted in #90510, which was closed due to inactivity.
2022-12-13Adjust log line in `fuchsia-test-runner.py`Andrew Pollack-1/+1
* Adjusting log line in `fuchsia-test-runner.py` to refer to self
2022-11-16[fuchsia] Document more settings for building RustDavid Koloski-0/+0
2022-11-11Adding Fuchsia compiler testing script, docsAndrew Pollack-0/+1041