Skip to content

Commit d717045

Browse files
committed
ci: cleanup tests
1 parent 09435c5 commit d717045

34 files changed

+119
-1094
lines changed

.changeset/shiny-mails-exercise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hyperdx/node-opentelemetry': patch
3+
---
4+
5+
feat: support gRPC protocol

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules
2+
dist
3+
.nx
4+
.git
5+
.github
6+
*.md
7+
.vscode
8+
.idea
9+
*.log
10+
coverage
11+
.eslintcache
12+
smoke-tests/collector/data.json
13+
smoke-tests/collector/data-results
14+
smoke-tests/report.*

.github/workflows/smoke.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ jobs:
1818
bats-version: 1.12.0
1919
- name: Check out repository
2020
uses: actions/checkout@v4
21+
- name: Build smoke test images
22+
run: make build-smoke-images
2123
- name: Run smoke tests
2224
run: make smoke-sdk

Makefile

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,34 @@ clean-smoke-tests:
66

77
#: cleans up TS build, smoke test output, and example app detritus
88
squeaky-clean: clean clean-smoke-tests
9-
rm -rf ./examples/dist
10-
rm -rf ./examples/node_modules
11-
rm -rf ./examples/hello-node/dist
12-
rm -rf ./examples/hello-node/node_modules
13-
rm -rf ./examples/hello-node-express/dist
14-
rm -rf ./examples/hello-node-express/node_modules
15-
rm -rf ./examples/hello-node-express-ts/dist
16-
rm -rf ./examples/hello-node-express-ts/node_modules
9+
rm -rf ./smoke-tests/hello-node-express-ts/dist
10+
rm -rf ./smoke-tests/hello-node-express-ts/node_modules
1711

1812
smoke-tests/collector/data.json:
1913
@echo ""
2014
@echo "+++ Zhuzhing smoke test's Collector data.json"
2115
@touch $@ && chmod o+w $@
2216

23-
smoke-sdk-grpc: smoke-tests/collector/data.json
17+
#: build Docker images for smoke tests (with caching)
18+
build-smoke-images:
2419
@echo ""
25-
@echo "+++ Running gRPC smoke tests."
20+
@echo "+++ Building smoke test Docker images (cached)"
2621
@echo ""
27-
cd smoke-tests && bats ./smoke-sdk-grpc.bats --report-formatter junit --output ./ --verbose-run
22+
cd smoke-tests && docker compose build
2823

29-
smoke-sdk-grpc-ts: smoke-tests/collector/data.json
24+
smoke-sdk-grpc-ts: build-smoke-images smoke-tests/collector/data.json
3025
@echo ""
3126
@echo "+++ Running gRPC smoke tests for TypeScript."
3227
@echo ""
3328
cd smoke-tests && bats ./smoke-sdk-grpc-ts.bats --report-formatter junit --output ./ --verbose-run
3429

35-
smoke-sdk-http: smoke-tests/collector/data.json
36-
@echo ""
37-
@echo "+++ Running HTTP smoke tests."
38-
@echo ""
39-
cd smoke-tests && bats ./smoke-sdk-http.bats --report-formatter junit --output ./ --verbose-run
40-
41-
smoke-sdk-http-ts: smoke-tests/collector/data.json
30+
smoke-sdk-http-ts: build-smoke-images smoke-tests/collector/data.json
4231
@echo ""
4332
@echo "+++ Running HTTP smoke tests for TypeScript."
4433
@echo ""
4534
cd smoke-tests && bats ./smoke-sdk-http-ts.bats --report-formatter junit --output ./ --verbose-run
4635

47-
smoke-sdk: smoke-sdk-http smoke-sdk-http-ts
36+
smoke-sdk: smoke-sdk-http-ts smoke-sdk-grpc-ts
4837

4938
smoke: docker_compose_present
5039
@echo ""
@@ -61,7 +50,7 @@ unsmoke: docker_compose_present
6150
#: use this for local smoke testing
6251
resmoke: unsmoke smoke
6352

64-
.PHONY: clean-smoke-tests example smoke unsmoke resmoke smoke-sdk-grpc smoke-sdk-http smoke-sdk
53+
.PHONY: clean-smoke-tests build-smoke-images example smoke unsmoke resmoke smoke-sdk-grpc-ts smoke-sdk-http-ts smoke-sdk
6554

6655
.PHONY: docker_compose_present
6756
docker_compose_present:

examples/hello-node-express-ts/instrumentation.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/hello-node-express/Dockerfile

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/hello-node-express/README.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/hello-node-express/index.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

examples/hello-node-express/package.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)