Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace commons logger with bullet_stream #993

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

colincasey
Copy link
Contributor

Some of the buildpacks here were early adopters of the output module originally developed in the Ruby buildpack. This output module has been replaced by bullet_stream.

Eventually, all the buildpacks here will use bullet_stream. For now, I'm just migrating over the existing usage so that I no longer have to deal with errors like this:
https://github.com/heroku/heroku-buildpack-nodejs/actions/runs/12626267505/job/35179157027#step:4:24

Some of the buildpacks here were early adopters of the output module originally developed [in the Ruby buildpack](https://github.com/heroku/buildpacks-ruby/blob/221fe5bd5bfc5e2715e3810ce353a1252564f012/commons/src/output/mod.rs). This output module has been replaced by [bullet_stream](https://github.com/heroku-buildpacks/bullet_stream).

 Eventually, all the buildpacks here will use [bullet_stream](https://github.com/heroku-buildpacks/bullet_stream). For now, I'm just migrating over the existing usage so that I no longer have to deal with errors like this:
 https://github.com/heroku/heroku-buildpack-nodejs/actions/runs/12626267505/job/35179157027#step:4:24
@colincasey colincasey self-assigned this Jan 6, 2025
@colincasey colincasey marked this pull request as ready for review January 6, 2025 19:15
@colincasey colincasey requested a review from a team as a code owner January 6, 2025 19:15
@colincasey colincasey merged commit c8571b8 into main Jan 7, 2025
41 checks passed
@colincasey colincasey deleted the replace_commons_logger_with_bullet_stream branch January 7, 2025 13:04
heroku-linguist bot added a commit that referenced this pull request Jan 7, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.4.1`.
- Updated `heroku/nodejs-engine` to `3.4.1`.
- Updated `heroku/nodejs-npm-engine` to `3.4.1`.
- Updated `heroku/nodejs-npm-install` to `3.4.1`.
- Updated `heroku/nodejs-pnpm-engine` to `3.4.1`.
- Updated `heroku/nodejs-pnpm-install` to `3.4.1`.
- Updated `heroku/nodejs-yarn` to `3.4.1`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

### Added

- 23.5.0 (linux-amd64, linux-arm64)

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.4.1`.
- Updated `heroku/nodejs-function-invoker` to `3.4.1`.
- Updated `heroku/nodejs-npm` to `3.4.1`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

### Changed

- Added npm version 11.0.0.
- Replaced `commons` output module with `bullet_stream`. ([#993](#993))

## heroku/nodejs-npm-install

### Changed

- Replaced `commons` output module with `bullet_stream` ([#993](#993))

## heroku/nodejs-pnpm-engine

### Changed

- Replaced `commons` output module with `bullet_stream` ([#993](#993))

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- Added Yarn version 4.6.0.
@heroku-linguist heroku-linguist bot mentioned this pull request Jan 7, 2025
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Jan 7, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.4.1`.
- Updated `heroku/nodejs-engine` to `3.4.1`.
- Updated `heroku/nodejs-npm-engine` to `3.4.1`.
- Updated `heroku/nodejs-npm-install` to `3.4.1`.
- Updated `heroku/nodejs-pnpm-engine` to `3.4.1`.
- Updated `heroku/nodejs-pnpm-install` to `3.4.1`.
- Updated `heroku/nodejs-yarn` to `3.4.1`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

### Added

- 23.5.0 (linux-amd64, linux-arm64)

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.4.1`.
- Updated `heroku/nodejs-function-invoker` to `3.4.1`.
- Updated `heroku/nodejs-npm` to `3.4.1`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

### Changed

- Added npm version 11.0.0.
- Replaced `commons` output module with `bullet_stream`. ([#993](heroku/buildpacks-nodejs#993))

## heroku/nodejs-npm-install

### Changed

- Replaced `commons` output module with `bullet_stream` ([#993](heroku/buildpacks-nodejs#993))

## heroku/nodejs-pnpm-engine

### Changed

- Replaced `commons` output module with `bullet_stream` ([#993](heroku/buildpacks-nodejs#993))

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- Added Yarn version 4.6.0.
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Jan 7, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.4.1`.
- Updated `heroku/nodejs-engine` to `3.4.1`.
- Updated `heroku/nodejs-npm-engine` to `3.4.1`.
- Updated `heroku/nodejs-npm-install` to `3.4.1`.
- Updated `heroku/nodejs-pnpm-engine` to `3.4.1`.
- Updated `heroku/nodejs-pnpm-install` to `3.4.1`.
- Updated `heroku/nodejs-yarn` to `3.4.1`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

### Added

- 23.5.0 (linux-amd64, linux-arm64)

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.4.1`.
- Updated `heroku/nodejs-function-invoker` to `3.4.1`.
- Updated `heroku/nodejs-npm` to `3.4.1`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

### Changed

- Added npm version 11.0.0.
- Replaced `commons` output module with `bullet_stream`. ([#993](heroku/buildpacks-nodejs#993))

## heroku/nodejs-npm-install

### Changed

- Replaced `commons` output module with `bullet_stream` ([#993](heroku/buildpacks-nodejs#993))

## heroku/nodejs-pnpm-engine

### Changed

- Replaced `commons` output module with `bullet_stream` ([#993](heroku/buildpacks-nodejs#993))

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- Added Yarn version 4.6.0.

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
colincasey added a commit that referenced this pull request Jan 9, 2025
One of the features of the `commons` logger that was removed in #993 was the ability to collect log messages that would be emitted at a later point. This feature is not available in `bullet_stream` so when I moved the logging message that notifies the user they've checked in their `node_modules` directory to the end of the build phase, I mistakenly moved the timing of that check to run at the end of the build phase as well.

This check needs to run at the beginning of the build phase and the warning needs to be emitted at the end. This PR contains changes to do this + adds an integration test to verify this case.
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.

2 participants