Sitelet https://github.com/nodejs/node/issues/51145
Skip to content

tests: tools/node_modules is not present in tarball #51145

Description

@AdamMajer

Version

No response

Platform

No response

Subsystem

No response

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

In git repository there is

https://github.com/nodejs/node/tree/main/tools/node_modules

in the source tarball, there is nothing there. This breaks at least

https://github.com/nodejs/node/blob/main/benchmark/misc/startup-cli-version.js#L13

Additional information

No response

Activity

  1. AdamMajer commented on Dec 13, 2023

    @AdamMajer
    ContributorAuthor

    Seems this is kind of test regression introduced in #50684 where this tests relies on this removed tool. tools/node_modules are removed from the tarball for some time, meaning many years.

  2. richardlau commented on Dec 14, 2023

    @richardlau
    Member

    Ideally this should have been caught by the https://github.com/nodejs/node/blob/main/.github/workflows/build-tarball.yml workflow in #50684 but it was not 😞.

  3. AdamMajer commented on Dec 14, 2023

    @AdamMajer
    ContributorAuthor
          - name: Copy directories needed for testing
            run: |
              cp -r tools/node_modules $TAR_DIR/tools
              cp -r tools/eslint-rules $TAR_DIR/tools
    

    this seems to copy things over 🤔 I think either these should be then shipped or should not be needed for tests?

  4. targos commented on Dec 14, 2023

    @targos
    Member

    I'm not sure it's reasonable to expect that benchmarks and their tests work with the release tarball.

  5. AdamMajer commented on Dec 14, 2023

    @AdamMajer
    ContributorAuthor

    Well, it's been working since at least nodejs 4.x 😉 I'm happy if tools/node_modules is removed in tarball, but there is no package-lock.json that allows it to be installed again. This removed part of tarball is about 22MB of disk space.

    The tools/eslint-rules are only 100kB so this can be added to the tarball.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions