Remove invalid dspace healthcheck step from import jobs - #1451
Merged
Conversation
`./dspace healthcheck` is not a valid command in the DSpace 7 backend (image dataquest/dspace:dspace-7_x); it is absent from launcher.xml on dtq-dev and fails with "Command not found: healthcheck", aborting the import-5 / import-8 jobs even though the DB import itself succeeds. The healthcheck launcher command (org.dspace.health.HealthReport) was a DSpace 5-era CLARIN feature never ported to the DSpace 7 fork. Remove the leftover step from both import jobs; the preceding "dspace basic command" step already runs `dspace checker` and `dspace version`. Tracking: dataquest-dev/dspace-customers#908 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Removes a failing post-import GitHub Actions step from the scheduled import jobs in deploy.yml, aligning the workflow with the actual DSpace 7 CLI (where ./dspace healthcheck is not available) so successful imports no longer get marked as failed.
Changes:
- Removed the
dspace healthcheckstep fromimport-5. - Removed the
dspace healthcheckstep fromimport-8. - Verified no remaining
healthcheckreferences in the workflow file.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Collaborator
|
We want to run health report during every import, but at first we need to implement report diff enhancement to compare two health reports from file. |
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.
Problem
The scheduled
Import Weeklyrun (Deploy DSpace→import-5/import-8) fails even though the DB import itself succeeds. The post-importdspace healthcheckstep aborts the job.Tracking issue: dataquest-dev/dspace-customers#908
Failed run: https://github.com/dataquest-dev/dspace-angular/actions/runs/31497534447 (job
import-8):Root cause
./dspace healthcheckis not a valid CLI command in the DSpace 7 backend (container imagedataquest/dspace:dspace-7_x). Thehealthchecklauncher command (org.dspace.health.HealthReport) was a DSpace 5–era CLARIN feature and was never ported to the DSpace 7 fork — it is absent fromdataquest-dev/DSpacedspace/config/launcher.xmlondtq-dev. The step is a leftover from DSpace 5. Since it runs under bash-e -o pipefailwith nocontinue-on-error, the "command not found" (exit 1) fails the whole job.Change set
Remove the
dspace healthcheckstep from the two jobs that had it, in .github/workflows/deploy.yml:import-5import-8No replacement is added — there is no DSpace 7 equivalent, and the preceding
dspace basic commandstep in each job already runs./dspace version,./dspace cleanup,./dspace index-discovery,./dspace oai import, and./dspace checker -v -l, which cover the intended post-import verification. Minimal and surgical: 12 lines removed, nothing else touched.Test evidence
End-to-end verification is the next
Import Weeklyrun — this workflow only executes on the self-hosteddspace-dep-1runner, so it can't be exercised from a fork/local box.Risk & rollback
Very low. The removed step never produced a successful result (the command does not exist), so no working behavior is lost. If a real health check is wanted later, it should be re-introduced as a valid DSpace 7 command in a separate change. Rollback: revert this commit.
Notes / assumptions
echoed and invoked the missing command; no later step reads its result.dspace-angularwhile the tracking issue is indspace-customers, so a same-repoFixes #keyword can't auto-close it; it is linked as a cross-reference instead.🤖 Generated with Claude Code