Skip to content

fix: make scenario seed inserts idempotent for CI - #117

Merged
ismaeltocruz merged 2 commits into
datakind:mainfrom
Oluwajuwon-O:fix/ci-duplicate-key-error
Aug 4, 2026
Merged

fix: make scenario seed inserts idempotent for CI#117
ismaeltocruz merged 2 commits into
datakind:mainfrom
Oluwajuwon-O:fix/ci-duplicate-key-error

Conversation

@Oluwajuwon-O

@Oluwajuwon-O Oluwajuwon-O commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • CI on main is failing because db/dot/2-upload_static_data.sql re-inserts dot.scenarios rows and hits a duplicate-key error.
  • Add ON CONFLICT (scenario_id) DO NOTHING to those seed inserts so re-runs are idempotent and CI can proceed.

Test plan

  • Confirm CI passes on this PR (lint / self-tests)
  • Confirm scenario seed no longer fails on duplicate scenario_id
  • After merge, re-run or rebase dependent PRs such as Install gcc as part of docker build #102

Oluwajuwon-O and others added 2 commits July 30, 2026 16:40
Pin Click for black 21.12b0 compatibility, and stop exact-matching
pg_get_viewdef output that varies across Postgres versions.
@ismaeltocruz
ismaeltocruz merged commit 11becd8 into datakind:main Aug 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants