Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/create-or-update-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
RELEASE_SCOPE: ${{ github.event.inputs.release_scope }}
RELEASE_KIND: ${{ github.event.inputs.release_scope }}:${{ github.event.inputs.release_type }}
RELEASE_TYPE: ${{ github.event.inputs.release_type }}
RELEASE_PR_REMOTE: origin
10 changes: 3 additions & 7 deletions .github/workflows/peer-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v5

- name: Install lerna
run: npm install -g lerna@6.6.2

- name: Install semver
run: npm install -g semver
- name: Install script dependencies
run: npm ci --ignore-scripts
Comment on lines +22 to +23
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I did this here as a drive-by. Will do this where possible in a separate PR.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #5971


- name: Check API dependency semantics
working-directory: packages
run: lerna run peer-api-check
run: npx nx run-many -t peer-api-check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ docs
#lerna
.changelog
package.json.lerna_backup
.nx

# OS generated files
.DS_Store
Expand Down
2 changes: 0 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/api --include-dependencies",
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "eslint . --ext .ts",
Expand Down Expand Up @@ -87,7 +86,6 @@
"karma-mocha-webworker": "1.3.0",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"memfs": "3.5.3",
"mocha": "11.7.2",
"nyc": "17.1.0",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/api-logs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/api-logs --include-dependencies",
"prewatch": "node ../../../scripts/version-update.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
},
Expand Down Expand Up @@ -73,7 +72,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"ts-loader": "9.5.4",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/exporter-logs-otlp-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"test": "nyc mocha 'test/**/*.test.ts'",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --watch --build",
"precompile": "lerna run version --scope @opentelemetry/exporter-logs-otlp-grpc --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -55,7 +54,6 @@
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/exporter-logs-otlp-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/exporter-logs-otlp-http --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -86,7 +85,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/exporter-logs-otlp-proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/exporter-logs-otlp-proto --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -76,7 +75,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/exporter-trace-otlp-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"test": "nyc mocha 'test/**/*.test.ts'",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --watch --build",
"precompile": "lerna run version --scope @opentelemetry/exporter-trace-otlp-grpc --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -52,7 +51,6 @@
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/exporter-trace-otlp-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/exporter-trace-otlp-http --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -77,7 +76,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/exporter-trace-otlp-proto --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -75,7 +74,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"tdd:browser": "karma start",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/opentelemetry-browser-detector --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -66,7 +65,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope @opentelemetry/configuration --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand All @@ -40,16 +39,17 @@
"access": "public"
},
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "2.1.0",
"yaml": "^1.10.2"
},
"peerDependencies": {
"@opentelemetry/api": "^1.9.0"
},
Comment on lines +45 to +47
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this was failing on the peer-api-check - I'm not sure why we did not include it for experimental packages, it should also apply to these.

"devDependencies": {
"@opentelemetry/api": "^1.9.0",
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"test": "nyc mocha 'test/**/*.test.ts'",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc -w",
"precompile": "lerna run version --scope @opentelemetry/exporter-metrics-otlp-grpc --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -52,7 +51,6 @@
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/exporter-metrics-otlp-http --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -77,7 +76,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/exporter-metrics-otlp-proto --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -77,7 +76,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope @opentelemetry/exporter-prometheus --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -48,7 +47,6 @@
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"tdd": "karma start",
"test:browser": "karma start --single-run",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/instrumentation-fetch --include-dependencies",
"prewatch": "node ../../../scripts/version-update.js",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -72,7 +71,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"msw": "2.8.4",
"nyc": "17.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"prepublishOnly": "npm run compile",
"precompile": "npm run protos:generate",
"compile": "tsc --build",
"clean": "tsc --build --clean",
"test": "npm run protos:generate && nyc mocha test/**/*.test.ts",
Expand All @@ -15,7 +16,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope @opentelemetry/instrumentation-grpc --include-dependencies",
"prewatch": "node ../../../scripts/version-update.js",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"protos:generate": "cd test/fixtures && buf generate",
Expand Down Expand Up @@ -60,7 +60,6 @@
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope @opentelemetry/instrumentation-http --include-dependencies",
"prewatch": "node ../../../scripts/version-update.js",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js",
Expand Down Expand Up @@ -59,7 +58,6 @@
"@types/sinon": "17.0.4",
"@types/superagent": "8.1.9",
"axios": "1.12.2",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nock": "13.5.6",
"nyc": "17.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"tdd": "karma start",
"test:browser": "karma start --single-run",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/instrumentation-xml-http-request --include-dependencies",
"prewatch": "node ../../../scripts/version-update.js",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -72,7 +71,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/instrumentation --include-dependencies",
"prewatch": "node ../../../scripts/version-update.js",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -96,7 +95,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/opentelemetry-sdk-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope @opentelemetry/sdk-node --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
Expand Down Expand Up @@ -77,7 +76,6 @@
"@types/mocha": "10.0.10",
"@types/node": "18.6.5",
"@types/sinon": "17.0.4",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
2 changes: 0 additions & 2 deletions experimental/packages/otlp-exporter-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"test:browser": "karma start --single-run",
"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "lerna run version --scope @opentelemetry/otlp-exporter-base --include-dependencies",
"prewatch": "npm run precompile",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
},
Expand Down Expand Up @@ -91,7 +90,6 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"mocha": "11.7.2",
"nyc": "17.1.0",
"sinon": "18.0.1",
Expand Down
Loading