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

Sometimes Zeitwerk messes up on CI action #95

Open
pedantic-git opened this issue Feb 8, 2023 · 0 comments
Open

Sometimes Zeitwerk messes up on CI action #95

pedantic-git opened this issue Feb 8, 2023 · 0 comments
Labels
bug Something isn't working infrastructure Infrastructure-only changes

Comments

@pedantic-git
Copy link
Member

Sometimes when running the tests on the new GH Actions, we get an error like:

/home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/devise-4.8.1/lib/devise/mailers/helpers.rb:5:in `<module:Mailers>': uninitialized constant Devise::Mailers::Helpers (NameError)
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/devise-4.8.1/lib/devise/mailers/helpers.rb:4:in `<module:Devise>'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/devise-4.8.1/lib/devise/mailers/helpers.rb:3:in `<main>'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/devise-4.8.1/app/mailers/devise/mailer.rb:5:in `<class:Mailer>'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/devise-4.8.1/app/mailers/devise/mailer.rb:4:in `<main>'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.[16](https://github.com/fishpercolator/name.pn/actions/runs/4126639812/jobs/7128830129#step:9:17).0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
	from /home/runner/work/name.pn/name.pn/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
	from /home/runner/work/name.pn/name.pn/config/initializers/mailer.rb:1:in `<main>'

This suggests to me a Zeitwerk issue with files loading in the wrong order.

It's not a huge deal because rerunning the tests works, but it would be good to get to the bottom of it.

@pedantic-git pedantic-git added bug Something isn't working infrastructure Infrastructure-only changes labels Feb 8, 2023
@pedantic-git pedantic-git moved this to To do in name.pn Roadmap Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure Infrastructure-only changes
Projects
Status: To do
Development

No branches or pull requests

1 participant