charisma-cli 0.5.4__tar.gz → 0.5.5__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.
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/PKG-INFO +1 -1
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/pyproject.toml +1 -1
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/__init__.py +1 -1
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/read_models.py +0 -1
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_results.py +8 -8
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_single_result.py +2 -3
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_uploader.py +2 -3
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/.gitignore +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/README.md +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/config.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/launch_url.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/main.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/models.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/parser.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/read_client.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/retry.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/subprocess_mgr.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/uploader.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/watcher.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/__init__.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/conftest.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_bamboo_labels.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_cli.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_config.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_integration.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_launch_url.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_models.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_open_launch_payload.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_parser.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_attachments.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_integration.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_launches.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_pagination.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_retry.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_silent_mode.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_subprocess_mgr.py +0 -0
- {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_watcher.py +0 -0
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
# is generated from pyproject.toml [project].version, so keeping this literal
|
|
5
5
|
# equal to pyproject guarantees `--version` reports the published version. The
|
|
6
6
|
# prepare-commit step owns the PATCH bump — do not hand-bump here.
|
|
7
|
-
__version__ = "0.5.
|
|
7
|
+
__version__ = "0.5.5"
|
|
@@ -173,7 +173,6 @@ class TestResultRecord(_CamelModel):
|
|
|
173
173
|
ended_at: datetime | None = None
|
|
174
174
|
duration_ms: int | None = None
|
|
175
175
|
retry_count: int | None = None
|
|
176
|
-
attempt_number: int | None = None
|
|
177
176
|
is_final: bool | None = None
|
|
178
177
|
history_id: str | None = None
|
|
179
178
|
effective_retention_policy: str | None = None
|
|
@@ -114,7 +114,6 @@ def _test_result_row(result_id: str, name: str, status: str, attempt: int, is_fi
|
|
|
114
114
|
"endedAt": "2026-06-20T09:14:12.640000+00:00",
|
|
115
115
|
"durationMs": 2540,
|
|
116
116
|
"retryCount": 1 if attempt > 1 else 0,
|
|
117
|
-
"attemptNumber": attempt,
|
|
118
117
|
"isFinal": is_final,
|
|
119
118
|
"historyId": "hist-7d3e9a1b",
|
|
120
119
|
"effectiveRetentionPolicy": "default-90d",
|
|
@@ -180,15 +179,15 @@ class TestListLaunchResultsEnvelope:
|
|
|
180
179
|
|
|
181
180
|
@respx.mock
|
|
182
181
|
def test_items_are_flat_per_attempt_rows(self) -> None:
|
|
183
|
-
"""Items are flat per-attempt rows: the same result id appears once per
|
|
182
|
+
"""Items are flat per-attempt rows: the same result id appears once per execution."""
|
|
184
183
|
respx.get(RESULTS_URL).mock(return_value=httpx.Response(200, json=RESULTS_ENVELOPE))
|
|
185
184
|
client = _make_client()
|
|
186
185
|
items = client.list_launch_results(LAUNCH_ID).items
|
|
187
|
-
attempts = [(item.name, item.
|
|
186
|
+
attempts = [(item.name, item.is_final) for item in items]
|
|
188
187
|
assert attempts == [
|
|
189
|
-
("test_pay_with_card",
|
|
190
|
-
("test_pay_with_card",
|
|
191
|
-
("test_apply_coupon",
|
|
188
|
+
("test_pay_with_card", False),
|
|
189
|
+
("test_pay_with_card", True),
|
|
190
|
+
("test_apply_coupon", True),
|
|
192
191
|
]
|
|
193
192
|
|
|
194
193
|
@respx.mock
|
|
@@ -199,7 +198,7 @@ class TestListLaunchResultsEnvelope:
|
|
|
199
198
|
first = client.list_launch_results(LAUNCH_ID).items[0]
|
|
200
199
|
snake_attrs = (
|
|
201
200
|
"launch_id", "launch_created_at", "project_id", "full_name", "error_message",
|
|
202
|
-
"stack_trace", "error_phase", "duration_ms", "retry_count",
|
|
201
|
+
"stack_trace", "error_phase", "duration_ms", "retry_count",
|
|
203
202
|
"is_final", "history_id", "effective_retention_policy", "retention_policy_name",
|
|
204
203
|
"expires_at", "feature_name", "feature_description", "base_test_name",
|
|
205
204
|
"is_parameterized", "workflow_status", "component_id", "metadata_tags",
|
|
@@ -210,7 +209,7 @@ class TestListLaunchResultsEnvelope:
|
|
|
210
209
|
wire = first.model_dump(by_alias=True)
|
|
211
210
|
for key in (
|
|
212
211
|
"launchId", "launchCreatedAt", "projectId", "fullName", "errorMessage",
|
|
213
|
-
"stackTrace", "errorPhase", "durationMs", "retryCount",
|
|
212
|
+
"stackTrace", "errorPhase", "durationMs", "retryCount",
|
|
214
213
|
"isFinal", "historyId", "effectiveRetentionPolicy", "retentionPolicyName",
|
|
215
214
|
"expiresAt", "featureName", "featureDescription", "baseTestName",
|
|
216
215
|
"isParameterized", "workflowStatus", "componentId", "metadataTags",
|
|
@@ -219,6 +218,7 @@ class TestListLaunchResultsEnvelope:
|
|
|
219
218
|
assert key in wire
|
|
220
219
|
|
|
221
220
|
|
|
221
|
+
|
|
222
222
|
class TestListLaunchResultsTagsPopulated:
|
|
223
223
|
"""results-list path: tags / metadataTags / zephyrIds are POPULATED (contrast get_result, where they are [])."""
|
|
224
224
|
|
|
@@ -133,7 +133,6 @@ RESULT_RECORD = {
|
|
|
133
133
|
"endedAt": "2026-06-20T09:14:12.640000+00:00",
|
|
134
134
|
"durationMs": 2540,
|
|
135
135
|
"retryCount": 0,
|
|
136
|
-
"attemptNumber": 1,
|
|
137
136
|
"isFinal": True,
|
|
138
137
|
"historyId": "hist-7d3e9a1b",
|
|
139
138
|
"effectiveRetentionPolicy": "default-90d",
|
|
@@ -274,14 +273,14 @@ class TestGetResultVerbatim:
|
|
|
274
273
|
client = _make_client()
|
|
275
274
|
result = client.get_result(RESULT_ID)
|
|
276
275
|
for attr in (
|
|
277
|
-
"launch_id", "project_id", "full_name", "duration_ms",
|
|
276
|
+
"launch_id", "project_id", "full_name", "duration_ms",
|
|
278
277
|
"is_final", "history_id", "base_test_name", "workflow_status", "component_id",
|
|
279
278
|
"created_at",
|
|
280
279
|
):
|
|
281
280
|
assert hasattr(result, attr)
|
|
282
281
|
wire = result.model_dump(by_alias=True)
|
|
283
282
|
for key in (
|
|
284
|
-
"launchId", "projectId", "fullName", "durationMs", "
|
|
283
|
+
"launchId", "projectId", "fullName", "durationMs", "isFinal",
|
|
285
284
|
"historyId", "baseTestName", "workflowStatus", "componentId", "createdAt",
|
|
286
285
|
):
|
|
287
286
|
assert key in wire
|
|
@@ -570,9 +570,8 @@ class TestAttachmentResultIdContract:
|
|
|
570
570
|
"""The attachment `resultId` must be the backend id returned by /results.
|
|
571
571
|
|
|
572
572
|
Regression for the `attachments_sent=0, attachments_skipped=N` production bug.
|
|
573
|
-
Under retries (ADR-031) the backend
|
|
574
|
-
|
|
575
|
-
and unknown to the client. The client therefore reads the backend-assigned
|
|
573
|
+
Under retries (ADR-031) the backend assigns test_results.id server-side
|
|
574
|
+
(uuid4), unknown to the client. The client therefore reads the backend-assigned
|
|
576
575
|
resultId from the append-results response (`results: [{testId, resultId}]`)
|
|
577
576
|
and sends THAT exact id on the attachment. Sending the raw Allure `uuid`, the
|
|
578
577
|
historyId, or a client-computed uuid5 never matches and every attachment is
|
|
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
|
|
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
|