Sync fails sometimes with "Key not unique"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- backend
Research direction
Start by investigating the sync baselining path and how ZHSLIB is loaded, since the report says it may be loaded twice and gives #1290 as context. Reproduction is still unavailable, so first establish a failing case and trace the duplicate load. The issue is done when baselining succeeds, or any non-fatal warning no longer emits text containing ERROR # that CI treats as an error.
Written by the indexing model from the issue text.
Description
Describe the bug
As a follow up to #1290, this issue tracks the underlying cause of the sync failure. The reported error is "Key not unique" on the file hash of what looks like module.xml. It looks like ZHSLIB gets loaded twice. The first time sync baselining works, but the second time it fails.
Relatedly, IPM outputs the error status using a plain write and doesn't throw, but the CI parsing interprets the ERROR # as an actual error, so we should strip that bit of string from the non-fatal warning.
To Reproduce
Unable to so far.
Expected behavior
Sync baselining doesn't fail. And if it does, it should be non-fatal to CI and not output text containing ERROR #
System information (please complete the following information):
- IPM version: 0.10.10
Additional context
Internal reference DEVOPS-1919
- Dominant language
- ObjectScript
- Stars
- 41
- Forks
- 33
- Avg merge
- 23h 20m
- Merged PRs (30d)
- 29
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intersystems/ipm
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
intersystems/ipm#1338 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
intersystems/ipm#1241 ·
Maintainers usually reply within 1 day
-
CI checks on IRIS for Health Community 2025.3 failing: license expiredPossibly taken @isc-eneil claimed this 2 days ago. Openbug
intersystems/ipm#1335 · 1 assignee ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
intersystems/ipm#1328 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 53/100
intersystems/ipm#1327 ·
Maintainers usually reply within 1 day
All issues in intersystems/ipm
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
integration: websocket_api
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
home-assistant/core#194618 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Maintainers usually reply within 1 day