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

Container build error due to missing config/webpack/tests #27678

Closed
BlankRH opened this issue Nov 3, 2023 · 4 comments · Fixed by #28099
Closed

Container build error due to missing config/webpack/tests #27678

BlankRH opened this issue Nov 3, 2023 · 4 comments · Fixed by #28099
Labels
bug Something isn't working status/confirmed This bug has been confirmed

Comments

@BlankRH
Copy link

BlankRH commented Nov 3, 2023

Steps to reproduce the problem

  1. Build container in github codespace

Expected behaviour

Successful build

Actual behaviour

Got an error

Detailed description

Error message: webpack config /workspaces/mastodon/config/webpack/tests.js not found, please run 'bundle exec rails webpacker:install' to install Webpacker with default configs or add the missing config file for your custom environment.

The file was deleted in #27333

Mastodon instance

No response

Mastodon version

No response

Technical details

No response

@BlankRH BlankRH added bug Something isn't working status/to triage This issue needs to be triaged labels Nov 3, 2023
@vmstan vmstan added status/confirmed This bug has been confirmed and removed status/to triage This issue needs to be triaged labels Nov 9, 2023
@vmstan
Copy link
Contributor

vmstan commented Nov 9, 2023

@renchap was that file intended to be deleted? I got the same error a couple days ago trying to get a container going.

@renchap
Copy link
Sponsor Member

renchap commented Nov 9, 2023

Yes, this is intended.

I am not sure what is trying to use this file, it should not be used. Maybe the container needs to be re-created from scratch (once #27788 is merged)?

@vmstan
Copy link
Contributor

vmstan commented Nov 9, 2023

I get the same error even with that patch.

@renchap
Copy link
Sponsor Member

renchap commented Nov 9, 2023

I do not understand what command is launched that will try to load this file.

It must be a webpack (or webpacker?) invocation with NODE_ENV=tests, but I cant figure out what is calling it 🤔

renchap added a commit to renchap/mastodon that referenced this issue Nov 28, 2023
It should be picked from `.env.test`

Fixes mastodon#27678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status/confirmed This bug has been confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants