Giter Club home page Giter Club logo

simplecov-parallel's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

docsend tomwganem

simplecov-parallel's Issues

Simplecov parallel and KnapsackPro not working properly in github actions

Hi. First of all, thanks for this GEM.

I've tried several configurations but Simplecov parallel is still complaining about my test coverage.

Does Simplecov parallel work with KnapsackPro?

I'll add here my last attempt on spec_helper and the message.

Thanks.

ENV['RAILS_ENV'] ||= 'test'

require 'knapsack_pro'

require 'simplecov/parallel'

KnapsackPro::Hooks::Queue.before_queue do |_queue_id|
  SimpleCov::Parallel.activate
  SimpleCov.minimum_coverage 100
  SimpleCov.start do
    add_filter 'config/initializers/rack_profiler.rb'
  end

  SimpleCov.command_name("rspec_ci_node_#{KnapsackPro::Config::Env.ci_node_index}")
end

KnapsackPro::Adapters::RSpecAdapter.bind
Finished in 1 minute 21.14 seconds
559 examples, 0 failures, 1 pending
I, [2020-09-29T11:40:26.068446 #3361]  INFO -- : [knapsack_pro] To retry in development the tests for this CI node please run below command on your machine. It will run all tests in a single run. If you need to reproduce a particular subset of tests fetched from API queue then above after each request to Knapsack Pro API you will find example rspec command.
I, [2020-09-29T11:40:26.068543 #3361]  INFO -- : [knapsack_pro] bundle exec rspec --format progress  --default-path spec "spec/models/project_spec.rb" "spec/controllers/demands_controller_spec.rb" "spec/controllers/customers_controller_spec.rb" "spec/models/risk_review_spec.rb" "spec/adapters/highchart/project_statistics_charts_adapter_spec.rb" "spec/controllers/project_risk_configs_controller_spec.rb" "spec/controllers/slack_configurations_controller_spec.rb" "spec/services/demand_score_matrix_service_spec.rb" "spec/adapters/highchart/highchart_adapter_spec.rb" "spec/controllers/financial_informations_controller_spec.rb" "spec/controllers/jira/jira_custom_field_mappings_controller_spec.rb" "spec/models/flow/statistics_flow_informations_spec.rb" "spec/models/team_member_spec.rb" "spec/adapters/highchart/strategic_charts_adapter_spec.rb" "spec/models/flow/membership_flow_information_spec.rb" "spec/models/jira/jira_account_spec.rb" "spec/controllers/authenticated_controller_spec.rb" "spec/controllers/webhook_integrations_controller_spec.rb" "spec/services/service_delivery_review_service_spec.rb" "spec/adapters/highchart/finances_charts_adapter_spec.rb" "spec/models/slack_configuration_spec.rb"
D, [2020-09-29T11:40:26.540054 #3361] DEBUG -- : [knapsack_pro] POST https://api.knapsackpro.com/v1/build_subsets
D, [2020-09-29T11:40:26.540104 #3361] DEBUG -- : [knapsack_pro] API request UUID: 52b686ff-f483-446e-a7c6-67f2ab7ffdac
D, [2020-09-29T11:40:26.540126 #3361] DEBUG -- : [knapsack_pro] API response:
D, [2020-09-29T11:40:26.540429 #3361] DEBUG -- : [knapsack_pro] 
D, [2020-09-29T11:40:26.540541 #3361] DEBUG -- : [knapsack_pro] Saved time execution report on Knapsack Pro API server.
Line coverage (85.87%) is below the expected minimum coverage (100.00%).
Coverage report generated for rspec_ci_node_0 to /home/runner/work/flow_climate/flow_climate/coverage. 3807 / 4433 LOC (85.88%) covered.
SimpleCov failed with exit 2 due to a coverage related error
Error: Process completed with exit code 2.

Simplecov 0.15.0 support

With simplecov 0.15.0 there was a change made to ResultMerger.resultset to cache the resultset which breaks SimpleCov::Parallel::Adapter::CircleCI.load_results_from_dir works.
Here is the PR that changed things in simplecov simplecov-ruby/simplecov#570

Simeplcov on CircleCI 2.0

Hi,

I have been using simeplecov-parallel with CircleCI 1.0 parallel nodes for a while and it works great. Iv'e recently started looking at CircleCI 2.0. Not sure if this is supported yet. In any case, when merging the result sets between nodes (docker containers), the ssh is failing.

Merging SimpleCov result into the master node...
Syncing CircleCI nodes...
Waiting for slave nodes to be ready for download...
ssh: Could not resolve hostname node1: Name or service not known

In CircleCI 1.0, ssh keypairs would setup by CircleCI container startup:
Adding per build SSH keypair
Add containers to ~/.ssh/config as node0, node1, node2, node3, node4, node5, node6, node7

No similar configuration setup in Circle 2.0.

Would performing a similar SSH keypair setup (manually in my circleci config) work? Or any other suggestions.

I can provide more detail if needed.

Thanks in advance,

John

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.