Repository navigation
fix(publish): Status lists finished failed jobs (#4807) - #4818
Merged
Merged
Conversation
…op (#4807) Current publish status only walked in-memory active job ids, so completed-with-failures, aborted, and restart-needed jobs disappeared about an hour after they ended. Merge last-day persisted failures into that list and keep clean completed and cancelled jobs off it. > Co-Authored by Grok Build 1.0.41 using grok-4.6 with agent night-issue-prs.
Record the mkd-code-review advisory pass (0 in-diff bugs) before merge. > Co-Authored by Grok Build 1.0.41 using grok-4.6 with agent night-issue-prs-erlang.
Collaborator
Author
|
LGTM. mkd-code-review 0.1.18 pack percussion, persona erlang 0.1.1, base origin/main. Gate PASS: 0 in-diff bugs. Preexisting paths.hardcoded_sep in getJobDetails is out of scope. Cognitive complexity on buildCurrentJobs is a suggestion only. Behavioral tests, Playwright surface, and product-docs are in the diff. Same-login APPROVE is rejected, so this is the review comment. Report: docs/ai-generated/code-reviews/pr-4818-erlang.md (867231c).
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Parent: #4531. Slice #4807.
GET /sitemanage/pubstatus/currentonly walked in-memory active job ids. Those ids are reaped about an hour after the job ends, so Completed with failures, aborted, and publish-server DB reconfigure (RESTARTNEEDED) disappeared from PublishingShell Status before an operator could open them.buildCurrentJobsnow keeps live jobs and also merges persisted failures from the last day. Clean Completed and user-cancelled jobs stay off the current list (they remain in Logs). A live failed job is not duplicated by its persisted row, so the publisher error text is kept while the job is still in memory.Operator: Grok: night-issue-prs (model grok-4.6)
Fixes #4807
Test plan
PSSitePublishStatusServiceJobDetailTest— persisted failure with empty active ids; aborted + restart-needed; running job plus dropped failure; no duplicate when the live id is still present; site-scoped finder is not the all-sites finder; completed and cancelled rows are droppedtests/publishing/statusFailedJobs.spec.json H2 QA (1 passed). Completed-with-failures row visible, no Stop on that row, Stop still on the running row, detail shows edition and error text. console-clean=yesProduct documentation
product-docs/8.2/admin/publishing.md(Status current list and job detail)Pre-PR Maven verification
modules_built=projects/sitemanage
BUILD SUCCESS. Tests run: 3065, Failures: 0, Errors: 0, Skipped: 125. No new compiler warnings from this change (existing module javadoc/raw-type warnings unchanged).
downstream_checked=none (no public type made final/sealed; no cross-module signature change)
UI proof (C5)
python3 docker/scripts/perc-devctl.py qa-up→ TEST_CMS_URL=http://127.0.0.1:9993 QA_CONTAINER=perc-matrix-cms-h2qa-healthRESULT:OK HTTP:200 HEALTH:healthyqa-deploy-war-jars --restart-jettythenqa-healthhealthy (sitemanage SNAPSHOT plus matching perc-system/rest/extensions-workflow)qa-deploy-webuiso the cell SPA includes Status job test ids already on main, thenqa-healthhealthycd modules/perc-qa-automation/frontend && npm run test:surface -- --path tests/publishing/statusFailedJobs.spec.jswith TEST_CMS_URL, ADMIN_USERNAME=Admin, TEST_DB_TYPE=h2, TEST_PRODUCT=cms → 1 passedPre-push local code review
Summary
Machine analysis found 2 finding(s), 0 bug(s).
Scope
Recommendation
approve
Gate
Issues
Issue 1 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 2 -- Severity: suggestion
complexity.cognitivearborist-metricsbuildCurrentJobscognitive=17 (max 15), cyclomatic=11 (max 15)