hte-cli 0.2.18__py3-none-any.whl → 0.2.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hte_cli/runner.py CHANGED
@@ -271,12 +271,22 @@ class TaskRunner:
271
271
  file_dest_base = _get_file_dest_from_compose(compose_path)
272
272
 
273
273
  files_to_mount: dict[str, str] = {}
274
- excluded_files = {"compose.yaml", "README.md", "instructions.txt"}
275
- for file_path in task_dir.iterdir():
276
- if file_path.is_file() and file_path.name not in excluded_files:
277
- dest_path = f"{file_dest_base}/{file_path.name}"
278
- files_to_mount[dest_path] = str(file_path)
279
- logger.info(f"Will mount file: {file_path.name} -> {dest_path}")
274
+ excluded_files = {"compose.yaml", "README.md", "instructions.txt", "logs"}
275
+
276
+ # Walk directory tree recursively to handle nested file structures
277
+ # (e.g., cybench tasks with blog/, nginx/, rcache/ subdirectories)
278
+ for file_path in task_dir.rglob("*"):
279
+ if not file_path.is_file():
280
+ continue
281
+ # Get relative path from task_dir
282
+ rel_path = file_path.relative_to(task_dir)
283
+ # Skip excluded files (check both filename and first directory component)
284
+ if rel_path.name in excluded_files or rel_path.parts[0] in excluded_files:
285
+ continue
286
+ # Build destination path preserving directory structure
287
+ dest_path = f"{file_dest_base}/{rel_path}"
288
+ files_to_mount[dest_path] = str(file_path)
289
+ logger.info(f"Will mount file: {rel_path} -> {dest_path}")
280
290
 
281
291
  # Create the Inspect task
282
292
  inspect_task = self.create_inspect_task(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hte-cli
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: Human Time-to-Completion Evaluation CLI
5
5
  Project-URL: Homepage, https://github.com/sean-peters-au/lyptus-mono
6
6
  Author: Lyptus Research
@@ -25,6 +25,7 @@ Requires-Dist: pyyaml>=6.0
25
25
  Requires-Dist: rich>=13.0
26
26
  Provides-Extra: dev
27
27
  Requires-Dist: pexpect>=4.8; extra == 'dev'
28
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
28
29
  Requires-Dist: pytest>=7.0; extra == 'dev'
29
30
  Requires-Dist: requests>=2.28; extra == 'dev'
30
31
  Description-Content-Type: text/markdown
@@ -6,10 +6,10 @@ hte_cli/config.py,sha256=42Xv__YMSeRLs2zhGukJkIXFKtnBtYCHnONfViGyt2g,3387
6
6
  hte_cli/errors.py,sha256=1J5PpxcUKBu6XjigMMCPOq4Zc12tnv8LhAsiaVFWLQM,2762
7
7
  hte_cli/events.py,sha256=Zn-mroqaLHNzdT4DFf8st1Qclglshihdc09dBfCN070,5522
8
8
  hte_cli/image_utils.py,sha256=TLwJdswUQrSD2bQcAXW03R8j8WG2pbHzd12TWcE7zy4,6418
9
- hte_cli/runner.py,sha256=dTlro9AJa6YUxdiyJInOpudHPw5S207LTasiJ2NL_nQ,14059
9
+ hte_cli/runner.py,sha256=SWl9FF4X3e9eBbZyL0ujhmmSL5OK8J6st-Ty0jD5AWM,14550
10
10
  hte_cli/scorers.py,sha256=NZWMlS2h2Hczm-bldH35wRhL3RYzGhQgCCp3rP9zhJo,6414
11
11
  hte_cli/version_check.py,sha256=WVZyGy2XfAghQYdd2N9-0Qfg-7pgp9gt4761-PnmacI,1708
12
- hte_cli-0.2.18.dist-info/METADATA,sha256=RTwT4AZ8rEWsQNv-jfwTlQqgHy4kRehIR7Ll7PPvEJM,3768
13
- hte_cli-0.2.18.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
- hte_cli-0.2.18.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
15
- hte_cli-0.2.18.dist-info/RECORD,,
12
+ hte_cli-0.2.19.dist-info/METADATA,sha256=-JBgXEkarLFsDv82zZ36XVsEoOgMiIQR5UFnEmJ8ssI,3820
13
+ hte_cli-0.2.19.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ hte_cli-0.2.19.dist-info/entry_points.txt,sha256=XbyEEi1H14DFAt0Kdl22e_IRVEGzimSzYSh5HlhKlFA,41
15
+ hte_cli-0.2.19.dist-info/RECORD,,