Skip to content

chore: remove node-pupeteer image for tests & fix release in dry-run mode#1683

Merged
david-luna merged 24 commits intomainfrom
dluna-release-fixes
Jan 28, 2026
Merged

chore: remove node-pupeteer image for tests & fix release in dry-run mode#1683
david-luna merged 24 commits intomainfrom
dluna-release-fixes

Conversation

@david-luna
Copy link
Copy Markdown
Member

@david-luna david-luna commented Jan 19, 2026

Dry run releases were failing. The reason is the recent change to use trusted publishers in #1651 which is not supported by Verdaccio (the service is used to test publishing).

This PR changes it to use regular npm publish --registry {verdaccio_URL} to avoid OIDC fetch errors and also skpis the file uploads to Elastic's storages

UPDATE: I've leveraged this PR to also fix the CI errors we are having right now. ref: #1685

The approach taken is to remove the node-puppeteer image and rely in the CI node to run the tests and collect the coverage. Summary of the changes

  • removed node-puppeteer service from ./dev-utils/docker-compose.yml
  • removed .ci/docker/node-puppeteer folder
  • removed run-test action from workflows
  • use the running CI node to:
    • start the stack
    • run the tests
    • run the coverage report

@github-actions
Copy link
Copy Markdown

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@david-luna david-luna changed the title chore: skip file upload for dry run relases chore: use npm CLI and skip file upload for dry run releases Jan 21, 2026
@david-luna david-luna marked this pull request as ready for review January 21, 2026 11:31
@david-luna david-luna changed the title chore: use npm CLI and skip file upload for dry run releases chore: remove node-pupeteer image for tests & fix release in dry-run mode Jan 27, 2026
@david-luna
Copy link
Copy Markdown
Member Author

@vigneshshanmugam @trentm I you have time you review would be appreciated :)

Comment thread scripts/ci-release.mjs
}

await appendFile(path.join(process.cwd(), '.npmrc'), '\n' + npmrcData)
await execa(
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 for reviewer: the previous method for creating a user and login was failing. This package (although it's old) gets the auth token right.

Comment thread CONTRIBUTING.md

```sh
NODEJS_VERSION=<nodeVersion> STACK_VERSION=<version> docker compose -f ./dev-utils/docker-compose.yml up -d apm-server
NODEJS_VERSION=<nodeVersion> STACK_VERSION=<version> docker compose -f ./dev-utils/docker-compose.yml up -d fleet-server
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 for reviewer: this command was wrong. apm-server service does not exist in the compose file

describe('Sourcemaps', function () {
// This test is failing in CI and tested in Kibana repo
// ref: https://github.com/elastic/kibana/blob/main/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.test.ts
xdescribe('Sourcemaps', function () {
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 for reviewer: skipped test for now. Maybe remove it in the future?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Arent we not exposing this endpoint?

xhrSpan.end()
tr._start = transactionStart
tr.end()
tr.end(transactionEnd)
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 for reviewer: without the end time test where failing locally because the transaction ended before the resource entries responseEnd time. This made the agent to discard al resource entries

@david-luna david-luna merged commit 737bab5 into main Jan 28, 2026
20 checks passed
@david-luna david-luna deleted the dluna-release-fixes branch January 28, 2026 08:26
Comment thread scripts/ci-release.mjs
writeFileSync(pkgPath, pkgText.replace('"provenance": true', '"provenance": false'))

// And publish
await execa(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you validate if this works? Lerna publish ensures these are overriden

"@elastic/apm-rum": "file:../rum",

without NPM workspaces, i dont think it would work.

Copy link
Copy Markdown
Member Author

@david-luna david-luna Jan 29, 2026

Choose a reason for hiding this comment

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

Nope. I'll try the dryRun mode locally and see if the installation of the packages have any issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants