Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b120b34
Replace test ID path with UUID path
hwikle-lanl Nov 10, 2025
3678046
Miscellaneous changes
hwikle-lanl Nov 10, 2025
29c5320
Fix unit test
hwikle-lanl Nov 12, 2025
229dff1
Fix cancel_tests unit test
hwikle-lanl Nov 14, 2025
05055af
Fix cancel_invalid_test unit test
hwikle-lanl Nov 14, 2025
8e7f889
Fix logging tests
hwikle-lanl Nov 14, 2025
5fe6abd
Fix arg_filtered_tests unit test
hwikle-lanl Nov 14, 2025
953b250
Fix list_cmd unit tests
hwikle-lanl Nov 14, 2025
73d3623
Fix index unit test
hwikle-lanl Nov 14, 2025
5fc4e1f
Pass more unit tests
hwikle-lanl Nov 14, 2025
d9b3b1b
Fix even more unit tests
hwikle-lanl Nov 15, 2025
b1dca02
Fix legacy unit test
hwikle-lanl Nov 17, 2025
b6438e1
Fix add_module unit test
hwikle-lanl Nov 17, 2025
c6f9d3e
Fix style issues
hwikle-lanl Nov 17, 2025
710cd03
Add validation to TestIDs
hwikle-lanl Nov 17, 2025
5816240
Various changes to integrate TestID
hwikle-lanl Nov 17, 2025
9ae5139
Various changes
hwikle-lanl Nov 18, 2025
7616505
Fix graph command ID parsing
hwikle-lanl Nov 18, 2025
7893598
Fixing IDs
hwikle-lanl Nov 18, 2025
4aabbc4
Progress towards fixing unit tests
hwikle-lanl Nov 19, 2025
0d45465
Fix group unit tests
hwikle-lanl Nov 19, 2025
6a96e5c
Fix bug in LazyTestRunDict
hwikle-lanl Nov 19, 2025
4f35be4
Fix cancel command unit tests
hwikle-lanl Nov 19, 2025
2811783
Fix cat unit tests
hwikle-lanl Nov 19, 2025
221c259
Fix graph command unit tests
hwikle-lanl Nov 19, 2025
fa1ddc3
Fix list command unit tests
hwikle-lanl Nov 19, 2025
7cf7006
Fix log command unit tests
hwikle-lanl Nov 19, 2025
d59da0f
Fix result command unit tests
hwikle-lanl Nov 19, 2025
d1833ee
Update cmd_utils to work with ID objects
hwikle-lanl Nov 19, 2025
d263163
Fix logging unit tests
hwikle-lanl Nov 19, 2025
ae7bce7
Fix run command unit tests
hwikle-lanl Nov 19, 2025
2a81b98
Fix series command tests
hwikle-lanl Nov 19, 2025
32cd674
Fix cancel command tests
hwikle-lanl Nov 19, 2025
460d743
Fix series unit tests
hwikle-lanl Nov 19, 2025
c1f8215
Fix status command unit tests
hwikle-lanl Nov 19, 2025
d9faae4
Fix remaining unit tests
hwikle-lanl Nov 19, 2025
25507d4
Refactor arg_filtered_tests
hwikle-lanl Nov 20, 2025
38a6252
Refactor arg_filtered_series
hwikle-lanl Nov 20, 2025
ebcfe96
Various changes
hwikle-lanl Nov 20, 2025
8dc25d9
More ID tweaks
hwikle-lanl Nov 21, 2025
ac4e679
Make host_cpus plugin platform independent
hwikle-lanl Dec 1, 2025
5500be8
Make sys_vars platform independent
hwikle-lanl Dec 1, 2025
395f875
Fix style issue
hwikle-lanl Dec 1, 2025
726c3e8
Fix style issues
hwikle-lanl Dec 1, 2025
03d628d
Ignore wrapped lines
hwikle-lanl Dec 1, 2025
5f7c931
Fix group commands unit test
hwikle-lanl Dec 1, 2025
e3a4117
Fix line wrapping causing unit test to fail
hwikle-lanl Dec 1, 2025
9873192
Try to fix group tests
hwikle-lanl Dec 1, 2025
1526687
Try to fix CI wrapping breaking unit tests
hwikle-lanl Dec 3, 2025
15a1b4c
Add --json option to group members subcommand
hwikle-lanl Dec 3, 2025
790b9d3
Fix syntax errors
hwikle-lanl Dec 3, 2025
42a0335
JSON output for group members
hwikle-lanl Dec 3, 2025
e5e1d69
Add GroupID to serializer
hwikle-lanl Dec 3, 2025
c896e8d
Fix TestID deserializer
hwikle-lanl Dec 3, 2025
b8b1510
Fix JSON output
hwikle-lanl Dec 3, 2025
4385831
Fix group command unit tests
hwikle-lanl Dec 3, 2025
10b1796
Remove debug statements
hwikle-lanl Dec 3, 2025
43fa721
Fix rebase
hwikle-lanl Dec 3, 2025
a16a642
Fix join
hwikle-lanl Dec 3, 2025
4544981
Remove stray print statement
hwikle-lanl Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:

# Set run_tests to run only the specific tests you need to fix.
- name: run_tests
env:
COLUMNS: 120
LINES: 40
run: |
./test/run_tests

Expand Down
11 changes: 4 additions & 7 deletions lib/pavilion/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def build(self, test_id: str, tracker: BuildTracker,
directory into our test directory, and note that we've used the given
build.

:param test_id: The test 'full_id' for the test initiating this build.
:param test_id: The test id for the test initiating this build.
:param tracker: A thread-safe tracker object for keeping info on what the
build is doing.
:param cancel_event: Allows builds to tell each other
Expand Down Expand Up @@ -570,7 +570,7 @@ def _build(self, build_dir, cancel_event, test_id, tracker: BuildTracker) -> boo
:param Path build_dir: The directory in which to perform the build.
:param threading.Event cancel_event: Event to signal that the build
should stop.
:param test_id: The 'full_id' of the test initiating the build.
:param test_id: The ID of the test initiating the build.
:param tracker: Build tracker for this build.
:returns: True or False, depending on whether the build appears to have
been successful.
Expand All @@ -592,7 +592,8 @@ def _build(self, build_dir, cancel_event, test_id, tracker: BuildTracker) -> boo
# Do the build, and wait for it to complete.
with self.tmp_log_path.open('w') as build_log:
# Build scripts take the test id as a first argument.
cmd = [self._script_path.as_posix(), test_id]
cmd = [self._script_path.as_posix(), str(test_id)]

proc = subprocess.Popen(cmd,
cwd=build_dir.as_posix(),
stdout=build_log,
Expand Down Expand Up @@ -797,10 +798,6 @@ def _setup_build_dir(self, dest: Path, tracker: BuildTracker) -> None:
raise TestBuilderError("Error extracting file '{}'\n {}"
.format(src_path.as_posix(), extract_error))

tracker.update(
state=STATES.BUILDING,
note="Generating dynamically created files.")

# Create build time file(s).
for file, contents in self._config.get('create_files', {}).items():
try:
Expand Down
2 changes: 1 addition & 1 deletion lib/pavilion/cancel_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def cancel_tests(pav_cfg: PavConfig, tests: Iterable[TestRun], outfile: TextIO,
title="Cancelling {} test{}".format(test_count, 's' if test_count > 1 else ''),
outfile=outfile,
fields=['name', 'id', 'state', 'series'],
rows=[{'name': test.name, 'id': test.full_id,
rows=[{'name': test.name, 'id': test.id,
'state': test.status.current().state, 'series': test.series}
for test in cancelled_test_info])
else:
Expand Down
Loading