Repository navigation
feat: report output file logs - #176
Conversation
logs[0].outputs now lists the uploaded files, read from the annotation output-file-logs that the taskmaster stores on the outputs filer's job (elixir-cloud-aai/tesk-core#144). Without it, or if it isn't a list of files with text url, path and size_bytes, the list stays empty. Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the review: other keys of a stored file are ignored, so that a later taskmaster can add some; size_bytes must be a whole number. The log names no values, as URLs may carry credentials. Tests for the list path and each invalid case; docs on the cost of GET /tasks and the taskmaster's permissions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideImplementationRead the annotation key and converter logic that turn the outputs filer job’s stored JSON into TES output-file logs.
DocumentationReview the API behavior, deployment permissions, upgrade requirements, and listing-cost documentation for output-file logs.
TestsCheck converter coverage for valid and invalid annotations, task-list matching, and the updated integration-test expectation.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #176 +/- ##
==========================================
+ Coverage 75.33% 75.81% +0.47%
==========================================
Files 71 71
Lines 3309 3345 +36
Branches 393 402 +9
==========================================
+ Hits 2493 2536 +43
+ Misses 663 651 -12
- Partials 153 158 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov's patch check missed the branches for a URL that isn't text and a missing path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Linked issuesChecked at commit 3d26f20 #160 feat: report output file logs · 2 of 3 met · 1 to check by hand
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="src/main/java/uk/ac/ebi/tsc/tesk/k8s/convert/TesKubernetesConverter.java" line_range="411" />
<code_context>
+ String reason = null;
+ try {
+ JsonNode files = this.objectMapper.readTree(json);
+ if (!files.isArray()) {
+ reason = "not a list";
+ } else {
</code_context>
<issue_to_address>
**Empty output annotations break task reads**
When the outputs filer job's `output-file-logs` annotation is empty or whitespace, `ObjectMapper.readTree(json)` returns null, so `files.isArray()` throws a `NullPointerException` that the `IOException` handler does not catch; task reads and task-detail or task-list requests fail instead of returning an empty outputs array.
Handle a null result from `readTree` as an empty outputs array.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: src/main/java/uk/ac/ebi/tsc/tesk/k8s/convert/TesKubernetesConverter.java:411
Sourcery expected readTree to return null for blank text; Jackson 2.18 returns a missing node, which gives an empty list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in #161, #174, #175, #176, #178, #181, #183 and #184. The conflict in docs/upgrading.md is resolved by merging both lists under "To 1.3.0": the upgrade order for filer labels and Java 21 come first, and the TES 1.1 fields item no longer says that ignore_error: true is refused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lists the changes merged into dev since the notes were written: Java 21 (#161), ignore_error (#174), the resource server (#175), output file logs (#176), the Kubernetes client (#178), Dependabot labels (#181), the executor job selector (#183) and full test coverage (#184). Adds a Breaking changes section, as in the 1.2.0 notes, and sets date-released to the planned tag date, 2026-11-16. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
TESK API reports TES 1.1
logs[0].outputs: the files that the outputsfiler uploaded, each with its
url,pathandsize_bytes.output-file-logsonthe outputs filer's job (feat: record output file logs tesk-core#145, for
tesk-core#144).
TesKubernetesConverter.extractOutputFileLogsreadsthe annotation for the
BASICandFULLviews, for single tasks andfor lists.
array stays
[], as before. A file needs texturlandpath, andsize_bytesas a string of digits. Other keys are ignored. The logline names the reason, never the values, because URLs may carry
credentials.
1.1, and the cost of
GET /tasks.patchonjobsandgetonpods/log.Closes #160
Verification
Lint on Java 8 (
./mvnw -B spotless:check checkstyle:check): BUILDSUCCESS, 0 violations.
./mvnw -B clean verifyon Java 21: 18413 unit tests and 99 ITs pass.JaCoCo coverage checks are met.
mkdocs build --strict: clean.New tests are in
TesKubernetesConverterTest. They cover:negative size.
Review:
adversarial-reviewerandquality-reviewer, two rounds.GET /taskscost below. The lows: a URL in the log, a check that wastoo strict, a missing list-path test, and docs.
comment) are fixed.
CI: all checks passed. The first run's
codecov/patchflagged twobranches without tests (a URL that isn't text, a missing path); both
now have tests.
Sourcery: 1 finding, that a blank annotation makes
readTreereturnnull. With Jackson 2.18, it returns a missing node. Tests for empty,
blank and
nullannotations were added and pass. The thread isanswered and resolved.
Declined review findings
GET /taskslists every filer job in the namespace, as before, tomatch them to the page's tasks. Each job of a finished task can now be
up to about 200 KB larger.
tesk-core change first: label the filer jobs, then select them by
task in TESK API.
the cost, and how to keep it down by deleting finished tasks.
further. Each assertion has a message, so I left it as is.
Open questions
None. Note for deployment: the array stays empty until the taskmaster
and filer images are of a tesk-core release that includes
elixir-cloud-aai/tesk-core#145.
🤖 Generated with Claude Code
Summary by Sourcery
Expose output filer results through TES 1.1 output file logs while documenting compatibility and operational requirements.
New Features:
logs[].outputsfor supported task views and task listings.Enhancements:
Deployment:
Documentation:
Tests: