Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ permissions:
contents: read
id-token: write

on: [pull_request]
on:
pull_request:
push:
branches: [master]

jobs:
shared-ci:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,26 @@ jobs:
if: ${{ matrix.test-category == 'coverage' }}
run: npm run coverage-${{ matrix.test-type }}

- name: Write the line coverage report (${{ matrix.test-type }})
# One leg per test type uploads; the daily run tests other refs and uploads none.
if: ${{ matrix.test-category == 'coverage' && matrix.node-version == '22.x' && inputs.ref == '' }}
env:
TEST_TYPE: ${{ matrix.test-type }}
run: |
set -euo pipefail
if [ "$TEST_TYPE" = browser ]; then data=.karma_output; else data=.nyc_output; fi
npx nyc report -t "$data" --reporter=lcovonly --report-dir "$RUNNER_TEMP/lcov"
mkdir -p local-coverage
sed "s|^SF:$GITHUB_WORKSPACE/|SF:|" "$RUNNER_TEMP/lcov/lcov.info" > "local-coverage/$TEST_TYPE.lcov"

- name: Upload the line coverage report (${{ matrix.test-type }})
if: ${{ matrix.test-category == 'coverage' && matrix.node-version == '22.x' && inputs.ref == '' }}
uses: actions/upload-artifact@v4
with:
name: local-coverage-${{ matrix.test-type }}
path: local-coverage/*.lcov
if-no-files-found: error

- name: Publish locally for vector tests
if: ${{ matrix.test-category == 'vectors' && !inputs.test-published-packages }}
run: npm run verdaccio-publish
Expand Down
3 changes: 2 additions & 1 deletion test-server/bug-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"create-client-accepts-reserved-aws-kms-namespace",
"encrypt-accepts-reserved-prefix-encryption-context-key",
"encrypt-mishandles-proto-encryption-context-key",
"default-cmm-ignores-reproduced-only-encryption-context"
"default-cmm-ignores-reproduced-only-encryption-context",
"server-cannot-read-integer-beyond-2-53"
]
4 changes: 4 additions & 0 deletions test-server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ createServer().listen(port, '127.0.0.1', () => {
`esdk-test-server (javascript) listening at http://127.0.0.1:${port}`
)
})

// Exit normally on SIGTERM, which is how the orchestrator stops the server;
// Node then runs its exit hooks, such as writing NODE_V8_COVERAGE data.
process.on('SIGTERM', () => process.exit(0))
Loading