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

Tests failing? #145

Open
sumeetattree opened this issue Jun 19, 2014 · 1 comment
Open

Tests failing? #145

sumeetattree opened this issue Jun 19, 2014 · 1 comment

Comments

@sumeetattree
Copy link

Have been trying to get rake-pipeline to build a very simple Assetfile (just has input and output statements), but fails every single time (have tested this only on ruby 2.1.1) when trying to open the manifest.json file with @ rb_sysopen error for tmp/rake-pipeline-[sha1]/manifest.json.

Have tried running tests on these ruby versions:

   ruby-1.9.3-p286 [ x86_64 ]
   ruby-1.9.3-p484 [ x86_64 ]
   ruby-1.9.3-p545 [ x86_64 ]
   ruby-2.0.0-p353 [ x86_64 ]
   ruby-2.1.1 [ x86_64 ]

Tests are failing for all these versions. Here are the failing tests:

242 examples, 44 failures

Failed examples:

rspec ./spec/filter_spec.rb:306 # Rake::Pipeline::Filter a filter with additional_dependencies creates its output files
rspec ./spec/manifest_spec.rb:50 # Rake::Pipeline::Manifest#write_manifest writes nothing if it's empty
rspec ./spec/manifest_spec.rb:43 # Rake::Pipeline::Manifest#write_manifest writes a manifest json file to disk
rspec ./spec/encoding_spec.rb:72 # the pipeline's encoding handling when the input is UTF-8 creates the correct file
rspec ./spec/encoding_spec.rb:89 # the pipeline's encoding handling when dealing with only BINARY-type filters does not raise an exception
rspec ./spec/rake_acceptance_spec.rb:652 # A realistic project should work with nested matchers
rspec ./spec/rake_acceptance_spec.rb:711 # A realistic project Handling mistakes should not raise an error for internal temporary files
rspec ./spec/rake_acceptance_spec.rb:589 # A realistic project Dynamic dependencies transitive dependencies it should behave like a pipeline with dynamic files should handle dynamic dependencies being deleted
rspec ./spec/rake_acceptance_spec.rb:589 # A realistic project Dynamic dependencies direct dependencies it should behave like a pipeline with dynamic files should handle dynamic dependencies being deleted
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL using multiple pipelines behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL using multiple pipelines behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL using multiple pipelines behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL using multiple pipelines behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL the raw pipeline DSL (with block strip_asserts_filter) behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL the raw pipeline DSL (with block strip_asserts_filter) behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL the raw pipeline DSL (with block strip_asserts_filter) behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL the raw pipeline DSL (with block strip_asserts_filter) behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL using the matcher spec behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL using the matcher spec behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL using the matcher spec behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL using the matcher spec behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL the raw pipeline DSL (with simple strip_asserts_filter) behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL the raw pipeline DSL (with simple strip_asserts_filter) behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL the raw pipeline DSL (with simple strip_asserts_filter) behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL the raw pipeline DSL (with simple strip_asserts_filter) behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL the raw pipeline DSL (with before_filter) behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL the raw pipeline DSL (with before_filter) behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL the raw pipeline DSL (with before_filter) behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL the raw pipeline DSL (with before_filter) behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL using multiple pipelines (with after_filters) behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL using multiple pipelines (with after_filters) behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL using multiple pipelines (with after_filters) behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL using multiple pipelines (with after_filters) behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:197 # A realistic project using the pipeline DSL using the matcher spec (with multiple inputs to a single pipeline) behaves like the pipeline DSL can be configured using the pipeline DSL
rspec ./spec/rake_acceptance_spec.rb:233 # A realistic project using the pipeline DSL using the matcher spec (with multiple inputs to a single pipeline) behaves like the pipeline DSL can be restarted to reflect new files
rspec ./spec/rake_acceptance_spec.rb:208 # A realistic project using the pipeline DSL using the matcher spec (with multiple inputs to a single pipeline) behaves like the pipeline DSL can be invoked repeatedly to reflected updated changes
rspec ./spec/rake_acceptance_spec.rb:202 # A realistic project using the pipeline DSL using the matcher spec (with multiple inputs to a single pipeline) behaves like the pipeline DSL can be configured using the pipeline DSL with an alternate Rake application
rspec ./spec/rake_acceptance_spec.rb:133 # A realistic project a pipeline supports filters with multiple outputs per input
rspec ./spec/rake_acceptance_spec.rb:111 # A realistic project a pipeline can successfully apply filters
rspec ./spec/rake_acceptance_spec.rb:168 # A realistic project a pipeline can be configured using the pipeline
rspec ./spec/project_spec.rb:81 # Rake::Pipeline::Project has a pipeline
rspec ./spec/project_spec.rb:156 # Rake::Pipeline::Project #cleanup_tmpdir leaves the current assetfile-digest tmp dir alone
rspec ./spec/project_spec.rb:150 # Rake::Pipeline::Project #cleanup_tmpdir cleans old rake-pipeline-* dirs out of the pipeline's tmp dir
rspec ./spec/project_spec.rb:114 # Rake::Pipeline::Project #invoke writes temp files to a subdirectory of the tmp dir named after the assetfile digest

Any ideas?

@sumeetattree
Copy link
Author

Including the contents of the Assetfile.

require 'barber'
require 'barber-emblem'

class EmblemFilePrecompilerFilter < Rake::Pipeline::Filter
  def precompile_templates(data)
    Barber::Emblem::EmberFilePrecompiler.call(data)
  end

  def generate_output(inputs, output)
    inputs.each do |input|
      result = File.read(input.fullpath)
      result = precompile_templates(result)
      output.write result
    end
  end
end

output 'dist'

input 'packages' do
  match 'lib/**/*.emblem' do
    filter EmblemFilePrecompilerFilter
  end
end

Here is the exact error:

rake-pipeline-a75d96fbadcc/lib/rake-pipeline/manifest.rb:34:in 'initialize': No such file or directory @ rb_sysopen - tmp/rake-pipeline-bd5fa793f61f9cb55ea14f17e53231e58ab09b15/manifest.json (Errno::ENOENT)

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