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.
Files changed (38) hide show
  1. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/PKG-INFO +1 -1
  2. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/pyproject.toml +1 -1
  3. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/__init__.py +1 -1
  4. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/read_models.py +0 -1
  5. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_results.py +8 -8
  6. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_single_result.py +2 -3
  7. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_uploader.py +2 -3
  8. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/.gitignore +0 -0
  9. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/README.md +0 -0
  10. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/config.py +0 -0
  11. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/launch_url.py +0 -0
  12. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/main.py +0 -0
  13. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/models.py +0 -0
  14. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/parser.py +0 -0
  15. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/read_client.py +0 -0
  16. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/retry.py +0 -0
  17. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/subprocess_mgr.py +0 -0
  18. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/uploader.py +0 -0
  19. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/src/charisma_cli/watcher.py +0 -0
  20. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/__init__.py +0 -0
  21. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/conftest.py +0 -0
  22. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_bamboo_labels.py +0 -0
  23. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_cli.py +0 -0
  24. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_config.py +0 -0
  25. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_integration.py +0 -0
  26. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_launch_url.py +0 -0
  27. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_models.py +0 -0
  28. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_open_launch_payload.py +0 -0
  29. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_parser.py +0 -0
  30. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client.py +0 -0
  31. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_attachments.py +0 -0
  32. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_integration.py +0 -0
  33. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_launches.py +0 -0
  34. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_read_client_pagination.py +0 -0
  35. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_retry.py +0 -0
  36. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_silent_mode.py +0 -0
  37. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_subprocess_mgr.py +0 -0
  38. {charisma_cli-0.5.4 → charisma_cli-0.5.5}/tests/test_watcher.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: charisma-cli
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: CLI tool that watches allure-results and streams test results + attachments to Charisma.
5
5
  Author: Charisma Team
6
6
  License-Expression: MIT
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
 
6
6
  [project]
7
7
  name = "charisma-cli"
8
- version = "0.5.4"
8
+ version = "0.5.5"
9
9
  description = "CLI tool that watches allure-results and streams test results + attachments to Charisma."
10
10
  readme = "README.md"
11
11
  license = "MIT"
@@ -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.4"
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 attempt."""
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.attempt_number, item.is_final) for item in items]
186
+ attempts = [(item.name, item.is_final) for item in items]
188
187
  assert attempts == [
189
- ("test_pay_with_card", 1, False),
190
- ("test_pay_with_card", 2, True),
191
- ("test_apply_coupon", 1, True),
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", "attempt_number",
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", "attemptNumber",
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", "attempt_number",
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", "attemptNumber", "isFinal",
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 stores test_results.id as
574
- uuid5(launch/historyId/attempt_number) — the attempt number is server-side
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