Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1827 commits
Select commit Hold shift + click to select a range
ec81fdd
Add v1.9.0-alpha environment (#1529)
adskyiproger Jul 15, 2025
fccdc97
fix: v2-advanced-search/7-search-birth-event-declaration-stauts.spec.ts
jamil314 Jul 15, 2025
a38b1f1
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Jul 15, 2025
c8862ed
Merge branch 'develop' into fix/e2e/adv-search-7
jamil314 Jul 15, 2025
625d5c6
fix: -notified +sent incomplete
jamil314 Jul 15, 2025
fafe11e
Merge branch 'fix/e2e/adv-search-7' of https://github.com/opencrvs/op…
jamil314 Jul 15, 2025
0447c82
fix: dont assert outbox for assignment
jamil314 Jul 15, 2025
b82b7a3
fix: increase timeout for assignFromWorkqueue
jamil314 Jul 15, 2025
155b99d
fix: offline outbox
jamil314 Jul 15, 2025
5d2dc5c
Merge pull request #1541 from opencrvs/fix/e2e/adv-search-7
jamil314 Jul 15, 2025
2e942fb
Merge branch 'develop' of github.com:opencrvs/opencrvs-farajaland int…
tareq89 Jul 15, 2025
af9acb9
Merge pull request #1519 from opencrvs/ocrvs-9675
tareq89 Jul 15, 2025
6b0cacc
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Jul 15, 2025
d972588
fix: blur text input after fill
jamil314 Jul 16, 2025
4fd17d2
Merge branch 'develop' of github.com:opencrvs/opencrvs-countryconfig …
rikukissa Jul 16, 2025
cb9ec4c
Merge pull request #1543 from opencrvs/fix/e2e-blur-on-fill
jamil314 Jul 16, 2025
85294c3
fix: blur after filling with data-testid
jamil314 Jul 16, 2025
a80d8ad
fix: keep focus when selecting
jamil314 Jul 16, 2025
bd8b93e
fix: assert with name
jamil314 Jul 16, 2025
5281255
fix: Changed token to fine-grained E2E_WORKFLOWS_TOKEN
adskyiproger Jul 16, 2025
3b13684
fix: replace unknown field
adskyiproger Jul 16, 2025
00353f3
Merge pull request #1544 from opencrvs/fix/e2e-fill-data-testid
tareq89 Jul 16, 2025
6100598
chore: enable v2 events feature flag
Zangetsu101 Jul 16, 2025
a20176e
Merge branch 'develop' of github.com:opencrvs/opencrvs-countryconfig …
Zangetsu101 Jul 17, 2025
97cda50
Merge branch 'develop' into merge-v1-8-0-to-develop
Zangetsu101 Jul 17, 2025
d34a21b
Merge branch 'merge-v1-8-0-to-develop' into alpha-testing-v19
Zangetsu101 Jul 17, 2025
e2b7a68
chore: sync roles with 1.8
Zangetsu101 Jul 17, 2025
e01b02d
Merge branch 'merge-v1-8-0-to-develop' into alpha-testing-v19
Zangetsu101 Jul 17, 2025
d22cec9
fix: add canvas only to v1 locators
Zangetsu101 Jul 18, 2025
71bd5f7
fix: pass in canvas selector
Zangetsu101 Jul 18, 2025
c67389d
Merge pull request #1548 from opencrvs/merge-v1-8-0-to-develop
Zangetsu101 Jul 18, 2025
b10370a
fix: Ignore https errors (like untrusted or self-signed certificates)…
adskyiproger Jul 18, 2025
5ea6776
Merge branch 'develop' into fix-parametrise-https-ignore
adskyiproger Jul 18, 2025
4af7478
Merge pull request #1551 from opencrvs/fix-parametrise-https-ignore
adskyiproger Jul 18, 2025
a9a4f57
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Jul 18, 2025
b0ced35
Merge remote-tracking branch 'origin/develop' into phase-3
cibelius Jul 21, 2025
83557ef
Merge remote-tracking branch 'upstream/phase-3' into phase-3
cibelius Jul 21, 2025
baa10c6
e2e: only run v2 e2es in CI
jamil314 Jul 21, 2025
47b66f8
fix: use regex to match v2
jamil314 Jul 21, 2025
8b9b3dd
fix: Ignore https errors (like untrusted or self-signed certificates)…
adskyiproger Jul 18, 2025
f6b47dd
fix tests
cibelius Jul 21, 2025
1156bc3
fix: signature locator in e2e
jamil314 Jul 21, 2025
a367327
Merge pull request #1556 from opencrvs/fix-signature-locator
jamil314 Jul 21, 2025
af83c47
Merge pull request #1457 from opencrvs/phase-3
cibelius Jul 21, 2025
fa216fa
Merge remote-tracking branch 'upstream/develop' into sync-21-07-2025
cibelius Jul 21, 2025
218507e
Merge pull request #1559 from opencrvs/sync-21-07-2025
cibelius Jul 21, 2025
5be04c5
always notify slack on success
cibelius Jul 21, 2025
d1566e3
remove get-previous-run
cibelius Jul 21, 2025
b9956da
skip failing test for now
cibelius Jul 21, 2025
bc477f7
Merge pull request #1561 from opencrvs/skip-failing-test
cibelius Jul 21, 2025
b4378d0
remove duplicate imports
cibelius Jul 21, 2025
4447572
Merge branch 'develop' into notify-always-on-success
cibelius Jul 21, 2025
e3e2fca
fix text
cibelius Jul 21, 2025
38cb294
Create .kube
adskyiproger Jul 21, 2025
9c4e673
Merge branch 'develop' into notify-always-on-success
cibelius Jul 22, 2025
4955abd
improve text
cibelius Jul 22, 2025
d6c4860
Merge pull request #1560 from opencrvs/notify-always-on-success
cibelius Jul 22, 2025
5a1e88d
e2e: remove v1 tests
jamil314 Jul 22, 2025
786b542
further correction tests
cibelius Jul 22, 2025
1fff56c
fix: signature locators
jamil314 Jul 22, 2025
da805d8
fix test
cibelius Jul 22, 2025
a3dd25e
add exact: true to sign locator
cibelius Jul 22, 2025
5884d1c
Merge branch 'develop' into ocrvs-9960-fix
cibelius Jul 22, 2025
29cfc40
Merge branch 'develop' into further-correction-tests
cibelius Jul 22, 2025
b5d5863
test improvements
cibelius Jul 22, 2025
314da1d
increase timeout
cibelius Jul 22, 2025
8d2443c
Merge pull request #1564 from opencrvs/ocrvs-9960-fix
cibelius Jul 22, 2025
51b96e1
improve test?
cibelius Jul 22, 2025
737593f
add test for displayed filed on summary page
cibelius Jul 22, 2025
ee2a5f9
Merge branch 'develop' into further-correction-tests
cibelius Jul 22, 2025
1f0329f
Merge branch 'alpha-testing-v19' of https://github.com/opencrvs/openc…
jamil314 Jul 22, 2025
0b2635a
add unnecessary expectation
cibelius Jul 22, 2025
9bf6ebf
skip failing tests for now
cibelius Jul 23, 2025
01d203a
fix: Make usage of the same CI variable for ignoreHTTPSErrors
adskyiproger Jul 23, 2025
f931fca
Update e2e/testcases/team/user-creation-registrar.spec.ts
cibelius Jul 23, 2025
7121c8d
Merge pull request #1563 from opencrvs/further-correction-tests
cibelius Jul 23, 2025
0542138
increase timeout
cibelius Jul 23, 2025
d85a7f5
Merge branch 'develop' into fix-ignore-ci-errors
adskyiproger Jul 23, 2025
27a2475
wrap event deletion response expectation to empty try-catch
cibelius Jul 23, 2025
b693977
Merge branch 'develop' into fix-ignore-ci-errors
adskyiproger Jul 23, 2025
88534fc
increase test timeout, improve readme
cibelius Jul 24, 2025
3240fbb
increase timeout for assertion
cibelius Jul 24, 2025
4c964d9
Merge pull request #1574 from opencrvs/increase-test-timeout
cibelius Jul 24, 2025
de27ad2
Merge branch 'develop' into fix-ignore-ci-errors
adskyiproger Jul 24, 2025
e67992b
Merge pull request #1565 from opencrvs/fix-ignore-ci-errors
adskyiproger Jul 24, 2025
6caec86
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Jul 25, 2025
c650aeb
Merge branch 'ocrvs-6-8' of https://github.com/opencrvs/opencrvs-coun…
jamil314 Jul 25, 2025
1639ef6
fix: use Review instead of Validate or Register
jamil314 Jul 25, 2025
a2be4b5
fix: use Review and Notified
jamil314 Jul 25, 2025
e0c5920
fix: update translation
jamil314 Jul 25, 2025
4ada2a3
fix: -`View Record` +`View`
jamil314 Jul 25, 2025
5c12eba
fix: use exact
jamil314 Jul 25, 2025
dc9a7c1
fix: use Review
jamil314 Jul 25, 2025
de84bd9
Merge pull request #1576 from opencrvs/ocrvs-6-8
jamil314 Jul 25, 2025
0a2339f
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Jul 25, 2025
179dc8f
Merge branch 'develop' into sync-alpha-testing-v-19
jamil314 Jul 25, 2025
4e8073d
Merge branch 'develop' into sync-alpha-testing-v-19
jamil314 Jul 25, 2025
48ea7ee
Revert "e2e: remove v1 tests"
jamil314 Jul 25, 2025
7a7a7b6
fix: add missing translations
jamil314 Jul 25, 2025
5d6c93d
fix: use v1 as default
jamil314 Jul 28, 2025
dea4c1f
fix: set `FEATURES.V2_EVENTS` to false
jamil314 Jul 28, 2025
d968693
chore: udpate yarn.lock
jamil314 Jul 28, 2025
7f8f329
fix: remove duplicate imports
jamil314 Jul 28, 2025
aaa81df
Merge branch 'alpha-testing-v19' of https://github.com/opencrvs/openc…
jamil314 Jul 28, 2025
fa8f3da
fix: update action labels in action menu
jamil314 Jul 28, 2025
185dfc7
Merge pull request #1579 from opencrvs/sync-alpha-testing-v-19
jamil314 Jul 28, 2025
5d45eed
correction-request-accept-e2e
cibelius Jul 28, 2025
0113aa5
add assertion
cibelius Jul 29, 2025
a8b4254
Merge remote-tracking branch 'upstream/develop' into sync-2025-07-29
cibelius Jul 29, 2025
b6a728f
Merge pull request #1583 from opencrvs/sync-2025-07-29
cibelius Jul 29, 2025
8bab95c
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Jul 29, 2025
e488b92
chore: change expected date format in results page
Zangetsu101 Jul 28, 2025
51b318a
Merge branch 'ocrvs-10029' of github.com:opencrvs/opencrvs-countrycon…
Zangetsu101 Jul 29, 2025
0dcce2c
Merge branch 'develop' into correction-request-accept-e2e
cibelius Jul 29, 2025
9f500a2
Merge branch 'ocrvs-7' of https://github.com/opencrvs/opencrvs-countr…
jamil314 Jul 29, 2025
1ee800a
progress with test
cibelius Jul 29, 2025
6d0a1d2
add assertion
cibelius Jul 29, 2025
cf4918e
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Jul 29, 2025
ffaa48a
Merge branch 'develop' into correction-request-accept-e2e
cibelius Jul 29, 2025
d58a5d0
Merge pull request #1585 from opencrvs/ocrvs-7
jamil314 Jul 29, 2025
0e224a3
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Jul 29, 2025
fe04d30
use type
cibelius Jul 30, 2025
02ff77f
return v1 tests
cibelius Jul 30, 2025
80494b3
Merge pull request #1586 from opencrvs/return-v1-tests
cibelius Jul 30, 2025
fbd3f51
Merge pull request #1582 from opencrvs/correction-request-accept-e2e
cibelius Jul 30, 2025
8eb5609
Make correction related e2e
tareq89 Jul 29, 2025
1099ec3
misc
tareq89 Jul 29, 2025
8941ad2
fix: -`requires-updates` +`requires-updates-self`
jamil314 Jul 30, 2025
0d029ab
Merge branch 'alpha-testing-v19' of https://github.com/opencrvs/openc…
jamil314 Jul 30, 2025
c74a992
v2-events.buttons.makeCorrection translation updated
tareq89 Jul 30, 2025
302753b
in v2 birth make correction, ensureAssigned before chekcing audit his…
tareq89 Jul 30, 2025
7390f6b
Merge pull request #1572 from opencrvs/ocrvs-9303
tareq89 Jul 30, 2025
d8b9b97
Merge branch 'ocrvs-10029' of github.com:opencrvs/opencrvs-countrycon…
Zangetsu101 Jul 30, 2025
df68da6
Merge branch 'alpha-testing-v19' into ocrvs-10029
Zangetsu101 Jul 30, 2025
cec6843
add correction-birth-record-2 test now rejects request
cibelius Jul 30, 2025
29304b7
Merge branch 'develop' into correction-test-additions
cibelius Jul 30, 2025
f237191
Merge pull request #1584 from opencrvs/ocrvs-10029
Zangetsu101 Jul 30, 2025
1080069
expand testcase
cibelius Jul 30, 2025
39817e0
progess
cibelius Jul 30, 2025
b93fec1
Merge remote-tracking branch 'upstream/develop' into sync-2025-07-30
cibelius Jul 30, 2025
e2741d2
Merge pull request #1590 from opencrvs/sync-2025-07-30
cibelius Jul 31, 2025
4e517c6
Merge branch 'develop' into correction-test-additions
cibelius Jul 31, 2025
a7330da
Merge remote-tracking branch 'upstream/develop' into sync-2025-07-31
cibelius Jul 31, 2025
250bedc
Merge pull request #1592 from opencrvs/sync-2025-07-31
cibelius Jul 31, 2025
49f0cc3
progress
cibelius Jul 31, 2025
b11339e
increase timeout
cibelius Jul 31, 2025
a9dfbae
Merge branch 'develop' into correction-test-additions
cibelius Jul 31, 2025
5f20d0c
skip test for now
cibelius Jul 31, 2025
e0bf057
Merge branch 'develop' into correction-test-additions
cibelius Jul 31, 2025
406858a
fix test
cibelius Jul 31, 2025
33e1c59
Merge pull request #1593 from opencrvs/fix-test
cibelius Jul 31, 2025
2da5eb9
Merge branch 'develop' into correction-test-additions
cibelius Jul 31, 2025
f61c9ab
fix test suite
cibelius Jul 31, 2025
f18ebfd
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Jul 31, 2025
f139cab
Merge branch 'develop' into correction-test-additions
cibelius Jul 31, 2025
c214247
Merge pull request #1588 from opencrvs/correction-test-additions
cibelius Jul 31, 2025
dd399ca
chore: add pub key to e2e env (#1518)
Nil20 Aug 1, 2025
14d45b7
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Aug 1, 2025
98c80ca
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Aug 1, 2025
d37a8f3
chore: amend correction rejection tests (#1595)
Nil20 Aug 4, 2025
80f8f80
test: navigate to drafts tab (#1597)
Zangetsu101 Aug 6, 2025
2ec3dbb
Merge branch 'merge-alpha-testing-to-develop' of github.com:opencrvs/…
Zangetsu101 Aug 6, 2025
aa08efc
Merge branch 'develop' into merge-alpha-testing-to-develop
Zangetsu101 Aug 6, 2025
adc1f6b
Merge branch 'alpha-testing-v19' of github.com:opencrvs/opencrvs-coun…
Zangetsu101 Aug 6, 2025
a0a0ecc
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Aug 7, 2025
781c02f
Merge branch 'merge-alpha-testing-to-develop' of github.com:opencrvs/…
Zangetsu101 Aug 7, 2025
fb3bcfc
Merge branch 'alpha-testing-v19' into merge-alpha-testing-to-develop
Zangetsu101 Aug 7, 2025
cfb05b5
fix: e2e (#1594)
jamil314 Aug 7, 2025
7ef08f4
Merge branch 'alpha-testing-v19' into merge-alpha-testing-to-develop
Zangetsu101 Aug 7, 2025
3c45a50
Merge branch 'merge-alpha-testing-to-develop' of github.com:opencrvs/…
Zangetsu101 Aug 8, 2025
e7cea47
test: update name field accessors
Zangetsu101 Aug 8, 2025
7c6d825
Merge pull request #1599 from opencrvs/merge-alpha-testing-to-develop
Zangetsu101 Aug 8, 2025
87eaf96
started porting correct-birth-record-3.spec.ts
tareq89 Jul 31, 2025
ddaadd3
data-test-id fixed to data-testid
tareq89 Aug 4, 2025
6fd82d2
v2/correct-birth-record-3.spec.ts added
tareq89 Aug 4, 2025
25b90d8
misc
tareq89 Aug 6, 2025
f40d6ad
v2/correct-birth-record-4.spec.ts added
tareq89 Aug 7, 2025
3bfe8e9
birth-declaration-with-mother-father.ts added
tareq89 Aug 8, 2025
295ff8f
toolkit updated
tareq89 Aug 8, 2025
2d55d8a
misc
tareq89 Aug 10, 2025
8aa81a9
Merge pull request #1591 from opencrvs/porting-v1-correction-e2e-to-v2
tareq89 Aug 10, 2025
8e10557
update e2e domain
tareq89 Aug 11, 2025
250944b
increase timeout for e2e tests
rikukissa Aug 12, 2025
e2517c5
Merge branch 'alpha-testing-v19' of github.com:opencrvs/opencrvs-fara…
rikukissa Aug 12, 2025
352bfd5
Merge branch 'alpha-testing-v19' into sync-with-alpha-testing-v19
makelicious Aug 13, 2025
c2dd7bd
Merge pull request #1600 from opencrvs/sync-with-alpha-testing-v19
makelicious Aug 13, 2025
ea0980f
update API test as copy has changed
rikukissa Aug 13, 2025
fa54955
more copy updates
rikukissa Aug 13, 2025
49d004f
chore: update test script to have assign modal confirmation
tahmidrahman-dsi Aug 13, 2025
9f57315
chore: add markus to alpha prod
makelicious Aug 13, 2025
b57c18c
Merge pull request #1606 from opencrvs/chore/add-markus-to-alpha-prod
makelicious Aug 13, 2025
f4d2dd8
Merge branch 'alpha-to-dev' of github.com:opencrvs/opencrvs-countryco…
rikukissa Aug 13, 2025
5a87786
fix: text matching to exact
tahmidrahman-dsi Aug 13, 2025
97bcc51
Merge branch 'alpha-testing-v19' into fix/ocrvs-10124
tahmidrahman-dsi Aug 13, 2025
1510ac5
Merge country config (#1603)
Nil20 Aug 13, 2025
b07785e
Sync farajaland with country-config (#1607)
Nil20 Aug 13, 2025
270ffb6
Merge branch 'alpha-testing-v19' of github.com:opencrvs/opencrvs-coun…
rikukissa Aug 15, 2025
483c996
Merge branch 'alpha-testing-v19' of github.com:opencrvs/opencrvs-fara…
rikukissa Aug 15, 2025
a356dd1
Merge branch 'develop' of github.com:opencrvs/opencrvs-countryconfig …
rikukissa Aug 15, 2025
96df741
Merge branch 'alpha-testing-v19' into fix/ocrvs-10124
tahmidrahman-dsi Aug 15, 2025
d1beb05
Merge branch 'alpha-to-dev' of github.com:opencrvs/opencrvs-countryco…
rikukissa Aug 15, 2025
156bf7a
update tests and copy
rikukissa Aug 15, 2025
10a6611
Merge branch 'alpha-testing-v19' of github.com:opencrvs/opencrvs-fara…
rikukissa Aug 15, 2025
9231362
update toolkit version
rikukissa Aug 15, 2025
7703ac9
fix translation
rikukissa Aug 15, 2025
597377c
copy, e2e test and configuration fixes
rikukissa Aug 15, 2025
e638760
Merge branch 'develop' of github.com:opencrvs/opencrvs-farajaland int…
rikukissa Aug 15, 2025
33d89b0
Merge remote-tracking branch 'upstream/alpha-testing-v19' into alpha-…
github-actions[bot] Aug 15, 2025
e4bc09c
Merge branch 'alpha-to-dev' of github.com:opencrvs/opencrvs-countryco…
rikukissa Aug 15, 2025
ad10ee4
Merge pull request #1610 from opencrvs/alpha-to-dev
rikukissa Aug 15, 2025
78510e0
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Aug 15, 2025
12b5102
increase timeout, fix translation
rikukissa Aug 17, 2025
2947bce
revert back to old playwright version as file uploads did not work ex…
rikukissa Aug 17, 2025
4c95765
Merge pull request #1602 from opencrvs/update-e2e-domain
tareq89 Aug 17, 2025
5eb51f6
fix: Ignore https certificate errors on CI env
adskyiproger Aug 18, 2025
e22ee1b
Merge branch 'develop' of https://github.com/opencrvs/opencrvs-countr…
jamil314 Aug 18, 2025
e963c48
Merge pull request #1605 from opencrvs/fix/ocrvs-10124
Zangetsu101 Aug 18, 2025
fa0d33a
Merge branch 'develop' of https://github.com/opencrvs/opencrvs-countr…
jamil314 Aug 19, 2025
0a059c5
chore: amend role label for event history (#1612)
Nil20 Aug 19, 2025
8f65a76
Merge pull request #1615 from opencrvs/sync-fork-18-08
jamil314 Aug 20, 2025
905edfb
fix translation
tareq89 Aug 20, 2025
6ff8df9
Merge pull request #1614 from opencrvs/death-correction-action-config
tareq89 Aug 20, 2025
8b81d76
Merge branch 'develop' of https://github.com/opencrvs/opencrvs-countr…
jamil314 Aug 20, 2025
51bd2f8
fix: update test to handle unassign modal
tahmidrahman-dsi Aug 20, 2025
4a37335
Merge pull request #1618 from opencrvs/sync-fork-20-08
tareq89 Aug 20, 2025
2e6e867
fix: handle unassign modal
tahmidrahman-dsi Aug 20, 2025
4f794fc
chore: update test cases to accommodate workqueue action mapping
makelicious Aug 21, 2025
c630772
Merge pull request #1620 from opencrvs/fix/workqueue-declaration-flow…
makelicious Aug 21, 2025
2340b1a
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Aug 21, 2025
c5c6796
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Aug 22, 2025
1ab1bb9
fix: e2e test scripts
tahmidrahman-dsi Aug 22, 2025
15298f0
Merge branch 'alpha-testing-v19' of github.com:opencrvs/opencrvs-fara…
tahmidrahman-dsi Aug 22, 2025
842492b
Merge branch 'develop' into sync-with-develop
makelicious Aug 22, 2025
bdd456b
fix: resolve package-lock
makelicious Aug 22, 2025
83ddecf
Merge pull request #1621 from opencrvs/sync-with-develop
jamil314 Aug 23, 2025
17145eb
Merge branch 'opencrvs:develop' into develop
adskyiproger Aug 25, 2025
ce5741e
Add environment files for pentest
github-actions[bot] Aug 25, 2025
70625c2
Merge branch 'develop' into fix/ocrvs-10124
tahmidrahman-dsi Aug 25, 2025
4714884
Merge pull request #1619 from opencrvs/fix/ocrvs-10124
makelicious Aug 25, 2025
4e53d9e
fix: add Archive option in action menu
jamil314 Aug 26, 2025
59a496d
fix: correction tests
jamil314 Aug 26, 2025
cbbf49b
Merge pull request #1625 from opencrvs/fix/ocrvs-10124
makelicious Aug 26, 2025
685aab1
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Aug 27, 2025
c7fba5c
take shorter substr of branch name for e2e deployment
cibelius Aug 27, 2025
bd5e560
Merge branch 'develop' into try-shorter-branch-name-for-e2e-deploymen…
cibelius Aug 27, 2025
d106b1c
Merge pull request #1627 from opencrvs/try-shorter-branch-name-for-e2…
cibelius Aug 27, 2025
18e0fe7
sync
cibelius Aug 27, 2025
615e971
Merge pull request #1630 from opencrvs/sync-2025-08-27
cibelius Aug 27, 2025
d381b4b
Merge remote-tracking branch 'upstream/develop' into develop
github-actions[bot] Aug 27, 2025
d7defcc
fix: update tests to use shared checks. Update checks
makelicious Aug 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
fhir: true
},
env: {
node: true
node: true,
jest: true
}
}
3 changes: 2 additions & 1 deletion .github/workflows/block-pr-develop-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
if: env.blocked == 'true'
uses: thollander/actions-comment-pull-request@v2
with:
message: "🚫 **Pull requests from 'develop' to 'release-*' are not allowed!**
message:
"🚫 **Pull requests from 'develop' to 'release-*' are not allowed!**
Please create pull request from hotfix into 'release-*' branch instead."
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/block-pr-fork-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Block PRs from forks

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
check-fork:
runs-on: ubuntu-latest
steps:
- name: Block PRs from forks
run: |
echo "PR from: ${{ github.event.pull_request.head.repo.full_name }}"
echo "Base repo: ${{ github.repository }}"
if [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
echo "❌ This pull request is from a fork. Closing."
exit 1
else
echo "✅ This pull request is from the same repository. Proceeding."
fi
9 changes: 6 additions & 3 deletions .github/workflows/clear-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
environment:
required: true
type: string
outputs:
outcome:
value: ${{ jobs.reset-data.outputs.outcome }}
workflow_dispatch:
inputs:
environment:
Expand All @@ -17,6 +20,9 @@ on:
- staging
- qa
- development
- v19-alpha-staging
- v19-alpha-prod
- pentest
jobs:
reset-data:
name: 'Reset data'
Expand All @@ -32,21 +38,18 @@ jobs:
fetch-depth: 0
ref: ${{ github.ref_name }}
path: './${{ github.event.repository.name }}'

- name: Read known hosts
run: |
cd ${{ github.event.repository.name }}
echo "KNOWN_HOSTS<<EOF" >> $GITHUB_ENV
sed -i -e '$a\' ./infrastructure/known-hosts
cat ./infrastructure/known-hosts >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ env.KNOWN_HOSTS }}

- name: Reset data
id: reset-data
env:
Expand Down
254 changes: 254 additions & 0 deletions .github/workflows/create-hetzner-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
name: Create Hetzner Server
run-name: Create server for ${{ inputs.environment }} environment
on:
workflow_dispatch:
inputs:
environment:
description: "Short server name (3–5 letters)"
required: true
type:
description: "Environment type (single or multi node)"
required: false
type: choice
default: 'single-node'
options:
- single-node
- multi-node
backup_enabled:
type: boolean
description: Backup enabled
default: false
required: false
workflow_call:
inputs:
environment:
type: string
description: Environment to deploy to
required: true
type:
type: string
description: Select group tag you want to execute
default: 'single-node'
backup_enabled:
type: boolean
description: Backup enabled
default: false

env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TF_PATH: infrastructure/provision-server/hetzner-cloud-empty-server
TF_VAR_hcloud_token: ${{ secrets.HCLOUD_TOKEN }}
TF_VAR_country_name: ${{ vars.COUNTRY_NAME }}
TF_VAR_env_name: ${{ inputs.environment }}
TF_VAR_env_type: ${{ inputs.type }}
TF_VAR_cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
TF_VAR_cloudflare_zone_id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
TERRAFORM_REPO: opencrvs/terraform-state
type: ${{ inputs.type }}
jobs:
create-environment:
name: Create New HCloud Environment
runs-on: ubuntu-24.04
environment: ${{ inputs.environment }}
steps:
- name: Checkout repo ${{ github.repository }}
uses: actions/checkout@v4
with:
# Token permissions: read:org, read:public_key, repo, workflow
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Configure git client for ${{ github.repository }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Checkout repo ${{ env.TERRAFORM_REPO }}
uses: actions/checkout@v4
with:
repository: ${{ env.TERRAFORM_REPO }}
ref: main
token: ${{ secrets.GH_TOKEN }}
path: terraform-state
- name: Configure git client for ${{ env.TERRAFORM_REPO }}
working-directory: terraform-state/
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Pull SSH key pair files from github
run: |
ssh_key_path=$TF_PATH/.ssh
mkdir -p $ssh_key_path
echo "${{ secrets.SSH_PRIVATE_KEY }}" > $ssh_key_path/id_rsa
echo "${{ secrets.SSH_PUBLIC_KEY }}" > $ssh_key_path/id_rsa.pub
chmod 600 $ssh_key_path/id_rsa
chmod 644 $ssh_key_path/id_rsa.pub

- name: Restore terraform state
run: |
mkdir -p terraform-state/${{ vars.COUNTRY_NAME }}
[ -f terraform-state/${{ vars.COUNTRY_NAME }}/${{ inputs.environment }}-${{ env.type }}.tfstate ] && \
cp terraform-state/${{ vars.COUNTRY_NAME }}/${{ inputs.environment }}-${{ env.type }}.tfstate ${{ env.TF_PATH }}/terraform.tfstate || \
echo "Terraform state file not found. Creating a new one."

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.5.7

- name: Terraform Init
working-directory: ${{ env.TF_PATH }}
run: terraform init

- name: Terraform Apply
working-directory: ${{ env.TF_PATH }}
run: |
terraform apply -auto-approve -input=false

- name: Store variables from terraform state file
id: output
working-directory: ${{ env.TF_PATH }}
run: |
echo "hostname=$TF_VAR_country_name-$TF_VAR_env_name" >> $GITHUB_OUTPUT
echo "public_ip=$(terraform output -raw public_ip)" >> $GITHUB_OUTPUT
echo "master_ip=$(terraform output -raw master_ip)" >> $GITHUB_OUTPUT
if [ ${{ inputs.type }} == 'single-node' ]
then
echo "master_hostname=$TF_VAR_country_name-$TF_VAR_env_name" >> $GITHUB_OUTPUT
else
echo "master_hostname=$TF_VAR_country_name-$TF_VAR_env_name-master" >> $GITHUB_OUTPUT
echo "worker_hostname=$TF_VAR_country_name-$TF_VAR_env_name-worker" >> $GITHUB_OUTPUT
# echo "backup_hostname=$TF_VAR_country_name-$TF_VAR_env_name-backup" >> $GITHUB_OUTPUT
echo "worker_ip=$(terraform output -raw worker_ip)" >> $GITHUB_OUTPUT
# echo "backup_ip=$(terraform output -raw backup_ip)" >> $GITHUB_OUTPUT
fi

- name: Update terraform state file in ${{ env.TERRAFORM_REPO }}
run: |
cp ${{ env.TF_PATH }}/terraform.tfstate terraform-state/${{ vars.COUNTRY_NAME }}/${{ inputs.environment }}-${{ env.type }}.tfstate
cd terraform-state/
if [[ -n "$(git status --porcelain)" ]]; then
git add ${{ vars.COUNTRY_NAME }}/${{ inputs.environment }}-${{ env.type }}.tfstate
git commit -m "Add environment file for ${{ inputs.environment }} env with type ${{ env.type }}"
git push
else
echo "No changes to commit"
fi

- name: Create environment file for ansible
env:
ENV: ${{ inputs.environment }}
MASTER_IP: ${{ steps.output.outputs.master_ip }}
MASTER_HOSTNAME: ${{ steps.output.outputs.master_hostname }}
WORKER_IP: ${{ steps.output.outputs.worker_ip }}
WORKER_HOSTNAME: ${{ steps.output.outputs.worker_hostname }}
# BACKUP_IP: ${{ steps.output.outputs.backup_ip }}
# BACKUP_HOSTNAME: ${{ steps.output.outputs.backup_hostname }}
run: |
TARGET_ENV_BACKUP=$ENV
SOURCE_ENV_BACKUP=${ENV/staging/prod}
[ ${{ inputs.backup_enabled }} == 'true' ] && \
INVENTORY_TEMPLATE_FILE=infrastructure/provision-server/templates/${{ env.type }}-with-backup-ansible-env.yml || \
INVENTORY_TEMPLATE_FILE=infrastructure/provision-server/templates/${{ env.type }}-ansible-env.yml
cat $INVENTORY_TEMPLATE_FILE | \
sed -e "s#SSH_HOST_MASTER#$MASTER_IP#" \
-e "s#HOSTNAME_MASTER#$MASTER_HOSTNAME#" \
-e "s#SSH_HOST_WORKER#$WORKER_IP#" \
-e "s#HOSTNAME_WORKER#$WORKER_HOSTNAME#" \
-e "s#TARGET_ENV_BACKUP#$TARGET_ENV_BACKUP#" \
-e "s#SOURCE_ENV_BACKUP#$SOURCE_ENV_BACKUP#" \
-e "s#ENV_BACKUP#$${{ inputs.environment }}#" \
> infrastructure/server-setup/inventory/${{ inputs.environment }}.yml && \
echo "Environment file created: infrastructure/server-setup/inventory/${{ inputs.environment }}.yml"
- name: Create docker compose
run: |
[ ! -f infrastructure/docker-compose.${{ inputs.environment }}-deploy.yml ] && \
cp infrastructure/provision-server/templates/docker-compose.${{ env.type }}.yml infrastructure/docker-compose.${{ inputs.environment }}-deploy.yml && \
echo "Docker-compose created" || \
echo "Docker-compose already exists"

- name: Update workflows
run: |
workflows=(
".github/workflows/provision.yml"
".github/workflows/deploy.yml"
".github/workflows/seed-data.yml"
".github/workflows/clear-environment.yml"
)
path=".on.workflow_dispatch.inputs.environment.options"

# Check if option already exists in first workflows file
if ! yq e "$path" "$workflows" | grep -qc "${{ inputs.environment }}"; then
echo "Adding new option '${{ inputs.environment }}' to workflows: ${workflows[@]}"
for workflow in ${workflows[@]}
do
yq e "$path += [\"${{ inputs.environment }}\"]" -i "$workflow"
echo "Updated workflow $workflow"
done
else
echo "Option '${{ inputs.environment }}' already exists in workflows ${workflows[@]}"
fi

- name: Create environment variables and secrets on GitHub
env:
MASTER_IP: ${{ steps.output.outputs.master_ip }}
DOMAIN: ${{ inputs.environment }}.opencrvs.dev
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ENVIRONMENT: ${{ inputs.environment }}
run: |
cat infrastructure/provision-server/templates/environment.variables.${{ env.type }}.tpl | \
sed -e "s/#SSH_HOST#/$MASTER_IP/" \
-e "s/#DOMAIN#/$DOMAIN/" \
> infrastructure/environment.variables
echo "Environment variables file created: infrastructure/environment.variables"
while read line; do
if [[ $line == *"="* ]]; then
key=$(echo "$line" | cut -d '=' -f 1)
value=$(echo "$line" | cut -d '=' -f 2-)
echo "Adding variable: $key"
gh variable set --env "$ENVIRONMENT" $key --body "$value"
fi
done < infrastructure/environment.variables
existing_secrets=$(gh secret list --env "$ENVIRONMENT" --json name -q '.[].name')
while read line; do
key=$(echo "$line" | cut -d '=' -f 1)
if echo "$existing_secrets" | grep -qw "$key"; then
echo "Secret $key already exists, skipping."
continue;
fi

if [[ $line == *"="* ]]; then
value=$(echo "$line" | cut -d '=' -f 2-)
echo "Adding secret with predefined value: $key"
else
value=`openssl rand -base64 25 | tr -cd '[:alnum:]._-' ; echo ''`
echo "Adding secret with random value: $key"
fi
gh secret set "$key" --env "$ENVIRONMENT" --body "$value"
done < infrastructure/provision-server/templates/environment.secrets.tpl
gh secret set SSH_KEY --env ${{ inputs.environment }} < $TF_PATH/.ssh/id_rsa || echo "Failed"
- name: Update known-hosts
env:
SSH_PORT: 22
MASTER_IP: ${{ steps.output.outputs.master_ip }}
MASTER_HOSTNAME: ${{ steps.output.outputs.master_hostname }}
WORKER_IP: ${{ steps.output.outputs.worker_ip }}
WORKER_HOSTNAME: ${{ steps.output.outputs.worker_hostname }}
# BACKUP_IP: ${{ steps.output.outputs.backup_ip }}
# BACKUP_HOSTNAME: ${{ steps.output.outputs.backup_hostname }}
run: |
echo "Wait few seconds for server to be available" && sleep 10
bash ./infrastructure/environments/update-known-hosts.sh ${{ env.MASTER_IP }} ${{ env.SSH_PORT }}
if [ ${{ inputs.type }} == 'multi-node' ]
then
bash ./infrastructure/environments/update-known-hosts.sh ${{ env.WORKER_IP }} ${{ env.SSH_PORT }}
fi

- name: Commit and push changes to ${{ github.repository }}
run: |
git add infrastructure/server-setup/inventory/${{ inputs.environment }}.yml \
infrastructure/known-hosts \
.github \
infrastructure/docker-compose.${{ inputs.environment }}-deploy.yml
git status
git commit -m "Add environment files for ${{ inputs.environment }}"
git push
Loading
Loading