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

'File does not exist: test_helper' error on 'rake test:integration' #188

Open
Apteryks opened this issue Mar 18, 2023 · 1 comment
Open

Comments

@Apteryks
Copy link

Hi!

While packaging this for GNU Guix, I stumbled upon the following error, which I can't make sense of:

$ rake test:integration --trace
** Invoke test:integration (first_time)
** Invoke compile (first_time)
** Invoke compile:x86_64-linux (first_time)
** Invoke compile:liquid_c:x86_64-linux (first_time)
** Invoke copy:liquid_c:x86_64-linux:2.7.4 (first_time)
** Invoke lib (first_time, not_needed)
** Invoke tmp/x86_64-linux/liquid_c/2.7.4/liquid_c.so (first_time, not_needed)
** Invoke tmp/x86_64-linux/liquid_c/2.7.4 (first_time, not_needed)
** Invoke tmp/x86_64-linux/liquid_c/2.7.4/Makefile (first_time, not_needed)
** Invoke tmp/x86_64-linux/liquid_c/2.7.4 (not_needed)
** Invoke ext/liquid_c/extconf.rb (first_time, not_needed)
** Invoke ext/liquid_c/block.c (first_time, not_needed)
** Invoke ext/liquid_c/c_buffer.c (first_time, not_needed)
** Invoke ext/liquid_c/context.c (first_time, not_needed)
** Invoke ext/liquid_c/document_body.c (first_time, not_needed)
** Invoke ext/liquid_c/expression.c (first_time, not_needed)
** Invoke ext/liquid_c/lexer.c (first_time, not_needed)
** Invoke ext/liquid_c/liquid.c (first_time, not_needed)
** Invoke ext/liquid_c/parse_context.c (first_time, not_needed)
** Invoke ext/liquid_c/parser.c (first_time, not_needed)
** Invoke ext/liquid_c/raw.c (first_time, not_needed)
** Invoke ext/liquid_c/resource_limits.c (first_time, not_needed)
** Invoke ext/liquid_c/tokenizer.c (first_time, not_needed)
** Invoke ext/liquid_c/usage.c (first_time, not_needed)
** Invoke ext/liquid_c/variable.c (first_time, not_needed)
** Invoke ext/liquid_c/variable_lookup.c (first_time, not_needed)
** Invoke ext/liquid_c/vm.c (first_time, not_needed)
** Invoke ext/liquid_c/vm_assembler.c (first_time, not_needed)
** Invoke ext/liquid_c/vm_assembler_pool.c (first_time, not_needed)
** Invoke tmp/x86_64-linux/stage/lib (first_time, not_needed)
** Execute copy:liquid_c:x86_64-linux:2.7.4
install -c tmp/x86_64-linux/liquid_c/2.7.4/liquid_c.so lib/liquid_c.so
cp tmp/x86_64-linux/liquid_c/2.7.4/liquid_c.so tmp/x86_64-linux/stage/lib/liquid_c.so
** Execute compile:liquid_c:x86_64-linux
** Execute compile:x86_64-linux
** Execute compile
** Execute test:integration

File does not exist: test_helper

rake aborted!
Command failed with status (1): [ruby -w -I"lib:lib" -I"/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib" "/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/integration_test.rb" ]
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/testtask.rb:130:in `block (3 levels) in define'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/file_utils.rb:57:in `sh'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/file_utils.rb:104:in `ruby'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/testtask.rb:117:in `block (2 levels) in define'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/file_utils_ext.rb:58:in `verbose'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/testtask.rb:111:in `block in define'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:281:in `block in execute'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:281:in `each'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:281:in `execute'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:199:in `synchronize'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/task.rb:188:in `invoke'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:160:in `invoke_task'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:116:in `each'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:116:in `block in top_level'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:125:in `run_with_threads'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:110:in `top_level'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:83:in `block in run'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:80:in `run'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/lib/ruby/gems/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/bin/rake:23:in `load'
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/bin/rake:23:in `<main>'
Tasks: TOP => test:integration

I'm using the 4.1.0 released gem as the source, with Ruby 2.7.4 and the following direct dependencies:

ruby-benchmark-ips@2.8.2 ruby-liquid@5.4.0 ruby-rake-compiler@1.1.1 ruby-ruby-memcheck@1.2.0 ruby-spy@1.0.5 ruby-stackprof@0.2.17

The unit tests are OK. Any ideas?

@Apteryks
Copy link
Author

I also get this error when building straight from a git checkout.

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

No branches or pull requests

1 participant