Skip to content

Commit 12e175a

Browse files
Add SR testing to semaphore (#252)
* Add SR testing to semaphore * Update sr script * update package.json * Run tests in band * Add npm types * Change SR to own block * Fix spacing * Change semaphore node version * check typescript version * Set TS version * Add SR test retries * Remove debugging commands * Shift SR tests to original module * Add comment on fixing first SR test fail
1 parent 716b26e commit 12e175a

File tree

5 files changed

+1610
-681
lines changed

5 files changed

+1610
-681
lines changed

.semaphore/semaphore.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,24 @@ blocks:
115115
- name: "Docs"
116116
commands:
117117
- make docs
118-
118+
119+
- name: "(SR) Linux amd64: test"
120+
dependencies: [ ]
121+
task:
122+
agent:
123+
machine:
124+
type: s1-prod-ubuntu22-04-amd64-2
125+
prologue:
126+
commands:
127+
- npm install
128+
jobs:
129+
- name: "Test"
130+
commands:
131+
- cd schemaregistry
132+
#TODO: Understand why first run fails
133+
- npm run test || npm run test || npm run test
134+
- artifact push workflow coverage/jest/coverage-final.json --destination "jest-sr-coverage.json"
135+
119136
- name: "Linux amd64: Performance"
120137
dependencies: [ ]
121138
task:
@@ -459,6 +476,7 @@ after_pipeline:
459476
- sem-version java 11
460477
- artifact pull workflow mocha-coverage.json
461478
- artifact pull workflow jest-coverage.json
479+
- artifact pull workflow jest-sr-coverage.json
462480
- npx --yes istanbul-merge --out merged-output/merged-coverage.json *-coverage.json
463481
- npx nyc report -t merged-output --report-dir coverage --reporter=text --reporter=lcov
464482
- emit-sonarqube-data --run_only_sonar_scan

0 commit comments

Comments
 (0)