gha-utils 4.16.0__tar.gz → 4.16.2__tar.gz
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.
Potentially problematic release.
This version of gha-utils might be problematic. Click here for more details.
- {gha_utils-4.16.0 → gha_utils-4.16.2}/PKG-INFO +12 -11
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/__init__.py +1 -1
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/cli.py +8 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/test_plan.py +6 -1
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils.egg-info/PKG-INFO +12 -11
- {gha_utils-4.16.0 → gha_utils-4.16.2}/pyproject.toml +2 -2
- {gha_utils-4.16.0 → gha_utils-4.16.2}/readme.md +11 -10
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/__main__.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/changelog.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/mailmap.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/matrix.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/metadata.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils/py.typed +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils.egg-info/SOURCES.txt +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils.egg-info/dependency_links.txt +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils.egg-info/entry_points.txt +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils.egg-info/requires.txt +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/gha_utils.egg-info/top_level.txt +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/setup.cfg +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/tests/test_changelog.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/tests/test_mailmap.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/tests/test_matrix.py +0 -0
- {gha_utils-4.16.0 → gha_utils-4.16.2}/tests/test_metadata.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gha-utils
|
|
3
|
-
Version: 4.16.
|
|
3
|
+
Version: 4.16.2
|
|
4
4
|
Summary: ⚙️ CLI helpers for GitHub Actions + reuseable workflows
|
|
5
5
|
Author-email: Kevin Deldycke <kevin@deldycke.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/kdeldycke/workflows
|
|
@@ -141,21 +141,22 @@ That's the best way to get started with `gha-utils` and experiment with it.
|
|
|
141
141
|
|
|
142
142
|
To ease deployment, standalone executables of `gha-utils`'s latest version are available as direct downloads for several platforms and architectures:
|
|
143
143
|
|
|
144
|
-
| Platform | `x86_64` | `arm64`
|
|
145
|
-
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
146
|
-
| **Linux** | [Download `gha-utils-linux-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-x64.bin) | [Download `gha-utils-linux-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-arm64.bin)
|
|
147
|
-
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin)
|
|
148
|
-
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) |
|
|
144
|
+
| Platform | `x86_64` | `arm64` |
|
|
145
|
+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
146
|
+
| **Linux** | [Download `gha-utils-linux-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-x64.bin) | [Download `gha-utils-linux-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-arm64.bin) |
|
|
147
|
+
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin) |
|
|
148
|
+
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) | [Download `gha-utils-windows-arm64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-arm64.exe) |
|
|
149
149
|
|
|
150
150
|
ABI targets:
|
|
151
151
|
|
|
152
152
|
```shell-session
|
|
153
153
|
$ file ./gha-utils-*
|
|
154
|
-
./gha-utils-linux-arm64.bin:
|
|
155
|
-
./gha-utils-linux-x64.bin:
|
|
156
|
-
./gha-utils-macos-arm64.bin:
|
|
157
|
-
./gha-utils-macos-x64.bin:
|
|
158
|
-
./gha-utils-windows-
|
|
154
|
+
./gha-utils-linux-arm64-build-01ac36d.bin: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=e35a1082c9c124edaa1c4b1bbb7e1aaf53baf870, for GNU/Linux 3.7.0, stripped
|
|
155
|
+
./gha-utils-linux-x64-build-01ac36d.bin: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2874af3c68a8588ccdf9e59d5c1b78e2b5bdc5bb, for GNU/Linux 3.2.0, stripped
|
|
156
|
+
./gha-utils-macos-arm64-build-01ac36d.bin: Mach-O 64-bit executable arm64
|
|
157
|
+
./gha-utils-macos-x64-build-01ac36d.bin: Mach-O 64-bit executable x86_64
|
|
158
|
+
./gha-utils-windows-arm64-build-01ac36d.exe: PE32+ executable (console) x86-64, for MS Windows
|
|
159
|
+
./gha-utils-windows-x64-build-01ac36d.exe: PE32+ executable (console) x86-64, for MS Windows
|
|
159
160
|
```
|
|
160
161
|
|
|
161
162
|
### Development version
|
|
@@ -338,6 +338,11 @@ def mailmap_sync(ctx, source, create_if_missing, destination_mailmap):
|
|
|
338
338
|
help="Set the default timeout for each CLI call, if not specified in the "
|
|
339
339
|
"test plan.",
|
|
340
340
|
)
|
|
341
|
+
@option(
|
|
342
|
+
"--show-trace-on-error/--hide-trace-on-error",
|
|
343
|
+
default=True,
|
|
344
|
+
help="Show execution trace of failed tests.",
|
|
345
|
+
)
|
|
341
346
|
@option(
|
|
342
347
|
"--stats/--no-stats",
|
|
343
348
|
is_flag=True,
|
|
@@ -352,6 +357,7 @@ def test_plan(
|
|
|
352
357
|
skip_platform: tuple[str, ...] | None,
|
|
353
358
|
exit_on_error: bool,
|
|
354
359
|
timeout: float | None,
|
|
360
|
+
show_trace_on_error: bool,
|
|
355
361
|
stats: bool,
|
|
356
362
|
) -> None:
|
|
357
363
|
# Load test plan from workflow input, or use a default one.
|
|
@@ -399,6 +405,8 @@ def test_plan(
|
|
|
399
405
|
except Exception as ex:
|
|
400
406
|
counter["failed"] += 1
|
|
401
407
|
logging.error(f"Test {test_name} failed: {ex}")
|
|
408
|
+
if show_trace_on_error:
|
|
409
|
+
echo(test_case.execution_trace or "No execution trace available.")
|
|
402
410
|
if exit_on_error:
|
|
403
411
|
logging.debug("Don't continue testing, a failed test was found.")
|
|
404
412
|
sys.exit(1)
|
|
@@ -64,6 +64,9 @@ class CLITestCase:
|
|
|
64
64
|
stdout_regex_fullmatch: re.Pattern | str | None = None
|
|
65
65
|
stderr_regex_fullmatch: re.Pattern | str | None = None
|
|
66
66
|
|
|
67
|
+
execution_trace: str | None = None
|
|
68
|
+
"""User-friendly rendering of the CLI command execution and its output."""
|
|
69
|
+
|
|
67
70
|
def __post_init__(self) -> None:
|
|
68
71
|
"""Normalize all fields."""
|
|
69
72
|
for field_id, field_data in asdict(self).items():
|
|
@@ -208,7 +211,9 @@ class CLITestCase:
|
|
|
208
211
|
f"CLI timed out after {self.timeout} seconds: {' '.join(clean_args)}"
|
|
209
212
|
)
|
|
210
213
|
|
|
211
|
-
|
|
214
|
+
# Execution has been completed, save the output for user's inspection.
|
|
215
|
+
self.execution_trace = render_cli_run(clean_args, result)
|
|
216
|
+
for line in self.execution_trace.splitlines():
|
|
212
217
|
logging.info(line)
|
|
213
218
|
|
|
214
219
|
for field_id, field_data in asdict(self).items():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gha-utils
|
|
3
|
-
Version: 4.16.
|
|
3
|
+
Version: 4.16.2
|
|
4
4
|
Summary: ⚙️ CLI helpers for GitHub Actions + reuseable workflows
|
|
5
5
|
Author-email: Kevin Deldycke <kevin@deldycke.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/kdeldycke/workflows
|
|
@@ -141,21 +141,22 @@ That's the best way to get started with `gha-utils` and experiment with it.
|
|
|
141
141
|
|
|
142
142
|
To ease deployment, standalone executables of `gha-utils`'s latest version are available as direct downloads for several platforms and architectures:
|
|
143
143
|
|
|
144
|
-
| Platform | `x86_64` | `arm64`
|
|
145
|
-
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
146
|
-
| **Linux** | [Download `gha-utils-linux-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-x64.bin) | [Download `gha-utils-linux-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-arm64.bin)
|
|
147
|
-
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin)
|
|
148
|
-
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) |
|
|
144
|
+
| Platform | `x86_64` | `arm64` |
|
|
145
|
+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
146
|
+
| **Linux** | [Download `gha-utils-linux-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-x64.bin) | [Download `gha-utils-linux-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-arm64.bin) |
|
|
147
|
+
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin) |
|
|
148
|
+
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) | [Download `gha-utils-windows-arm64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-arm64.exe) |
|
|
149
149
|
|
|
150
150
|
ABI targets:
|
|
151
151
|
|
|
152
152
|
```shell-session
|
|
153
153
|
$ file ./gha-utils-*
|
|
154
|
-
./gha-utils-linux-arm64.bin:
|
|
155
|
-
./gha-utils-linux-x64.bin:
|
|
156
|
-
./gha-utils-macos-arm64.bin:
|
|
157
|
-
./gha-utils-macos-x64.bin:
|
|
158
|
-
./gha-utils-windows-
|
|
154
|
+
./gha-utils-linux-arm64-build-01ac36d.bin: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=e35a1082c9c124edaa1c4b1bbb7e1aaf53baf870, for GNU/Linux 3.7.0, stripped
|
|
155
|
+
./gha-utils-linux-x64-build-01ac36d.bin: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2874af3c68a8588ccdf9e59d5c1b78e2b5bdc5bb, for GNU/Linux 3.2.0, stripped
|
|
156
|
+
./gha-utils-macos-arm64-build-01ac36d.bin: Mach-O 64-bit executable arm64
|
|
157
|
+
./gha-utils-macos-x64-build-01ac36d.bin: Mach-O 64-bit executable x86_64
|
|
158
|
+
./gha-utils-windows-arm64-build-01ac36d.exe: PE32+ executable (console) x86-64, for MS Windows
|
|
159
|
+
./gha-utils-windows-x64-build-01ac36d.exe: PE32+ executable (console) x86-64, for MS Windows
|
|
159
160
|
```
|
|
160
161
|
|
|
161
162
|
### Development version
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
# Docs: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
|
|
3
3
|
name = "gha-utils"
|
|
4
|
-
version = "4.16.
|
|
4
|
+
version = "4.16.2"
|
|
5
5
|
# Python versions and their status: https://devguide.python.org/versions/
|
|
6
6
|
requires-python = ">= 3.11"
|
|
7
7
|
description = "⚙️ CLI helpers for GitHub Actions + reuseable workflows"
|
|
@@ -137,7 +137,7 @@ addopts = [
|
|
|
137
137
|
xfail_strict = true
|
|
138
138
|
|
|
139
139
|
[tool.bumpversion]
|
|
140
|
-
current_version = "4.16.
|
|
140
|
+
current_version = "4.16.2"
|
|
141
141
|
allow_dirty = true
|
|
142
142
|
ignore_missing_files = true
|
|
143
143
|
|
|
@@ -76,21 +76,22 @@ That's the best way to get started with `gha-utils` and experiment with it.
|
|
|
76
76
|
|
|
77
77
|
To ease deployment, standalone executables of `gha-utils`'s latest version are available as direct downloads for several platforms and architectures:
|
|
78
78
|
|
|
79
|
-
| Platform | `x86_64` | `arm64`
|
|
80
|
-
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
81
|
-
| **Linux** | [Download `gha-utils-linux-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-x64.bin) | [Download `gha-utils-linux-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-arm64.bin)
|
|
82
|
-
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin)
|
|
83
|
-
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) |
|
|
79
|
+
| Platform | `x86_64` | `arm64` |
|
|
80
|
+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
81
|
+
| **Linux** | [Download `gha-utils-linux-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-x64.bin) | [Download `gha-utils-linux-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-linux-arm64.bin) |
|
|
82
|
+
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin) |
|
|
83
|
+
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) | [Download `gha-utils-windows-arm64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-arm64.exe) |
|
|
84
84
|
|
|
85
85
|
ABI targets:
|
|
86
86
|
|
|
87
87
|
```shell-session
|
|
88
88
|
$ file ./gha-utils-*
|
|
89
|
-
./gha-utils-linux-arm64.bin:
|
|
90
|
-
./gha-utils-linux-x64.bin:
|
|
91
|
-
./gha-utils-macos-arm64.bin:
|
|
92
|
-
./gha-utils-macos-x64.bin:
|
|
93
|
-
./gha-utils-windows-
|
|
89
|
+
./gha-utils-linux-arm64-build-01ac36d.bin: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=e35a1082c9c124edaa1c4b1bbb7e1aaf53baf870, for GNU/Linux 3.7.0, stripped
|
|
90
|
+
./gha-utils-linux-x64-build-01ac36d.bin: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2874af3c68a8588ccdf9e59d5c1b78e2b5bdc5bb, for GNU/Linux 3.2.0, stripped
|
|
91
|
+
./gha-utils-macos-arm64-build-01ac36d.bin: Mach-O 64-bit executable arm64
|
|
92
|
+
./gha-utils-macos-x64-build-01ac36d.bin: Mach-O 64-bit executable x86_64
|
|
93
|
+
./gha-utils-windows-arm64-build-01ac36d.exe: PE32+ executable (console) x86-64, for MS Windows
|
|
94
|
+
./gha-utils-windows-x64-build-01ac36d.exe: PE32+ executable (console) x86-64, for MS Windows
|
|
94
95
|
```
|
|
95
96
|
|
|
96
97
|
### Development version
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|