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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.48.0 regression test failure #1187

Closed
chenrui333 opened this issue Apr 18, 2024 · 9 comments
Closed

4.48.0 regression test failure #1187

chenrui333 opened this issue Apr 18, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@chenrui333
Copy link

馃憢 trying to build the latest release, but run into some regression test issue. The error log is as below:

error build log
$ /opt/homebrew/Cellar/gitlab-ci-local/4.48.0/bin/gitlab-ci-local --list
Error: Cannot find module './schema.json'
Require stack:
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.0/libexec/lib/node_modules/gitlab-ci-local/src/schema/index.js
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.0/libexec/lib/node_modules/gitlab-ci-local/src/validator.js
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.0/libexec/lib/node_modules/gitlab-ci-local/src/parser.js
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.0/libexec/lib/node_modules/gitlab-ci-local/src/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/opt/homebrew/Cellar/gitlab-ci-local/4.48.0/libexec/lib/node_modules/gitlab-ci-local/src/schema/index.ts:2:16)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19)

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/8738385082/job/23977555195
relates to Homebrew/homebrew-core#169393

@firecow
Copy link
Owner

firecow commented Apr 18, 2024

I think we failed to include schema.json into the binaries. 4.48.1 coming up.

@firecow firecow added the bug Something isn't working label Apr 18, 2024
@firecow
Copy link
Owner

firecow commented Apr 18, 2024

https://github.com/firecow/gitlab-ci-local/releases/tag/4.48.1 @chenrui333 Try this.
Reopen if this also fails.

@firecow firecow closed this as completed Apr 18, 2024
@chenrui333
Copy link
Author

cool, cool, thanks!

@chenrui333
Copy link
Author

still does not work

==> /opt/homebrew/Cellar/gitlab-ci-local/4.48.1/bin/gitlab-ci-local --list
Error: Cannot find module './schema.json'
Require stack:
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.1/libexec/lib/node_modules/gitlab-ci-local/src/schema/index.js
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.1/libexec/lib/node_modules/gitlab-ci-local/src/validator.js
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.1/libexec/lib/node_modules/gitlab-ci-local/src/parser.js
- /opt/homebrew/Cellar/gitlab-ci-local/4.48.1/libexec/lib/node_modules/gitlab-ci-local/src/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/opt/homebrew/Cellar/gitlab-ci-local/4.48.1/libexec/lib/node_modules/gitlab-ci-local/src/schema/index.ts:2:16)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19)

/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
Minitest::Assertion: Expected: 0
  Actual: 1

@chenrui333
Copy link
Author

can you maybe try adding this in the package.json?

  "files": [
    "src/schema/schema.json"
  ],

@tchernomax
Copy link

@firecow I can confirm that 4.48.1 doesn't work.

@pineapplehunter
Copy link
Contributor

Hi, I was having this issue.
Adding this to package.json seems to work for me.

  "files":[
    "src/**/*.js",
    "src/**/*.json"
  ]

I was able to print the files included by running this command.

$ npm pack --dry-run --json | jq ".[].files[].path" -r

@firecow
Copy link
Owner

firecow commented Apr 23, 2024

I'm releasing 4.48.2 now

@chenrui333
Copy link
Author

works for me per Homebrew/homebrew-core#169824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants