increments / simplecov-parallel Goto Github PK
View Code? Open in Web Editor NEWParallelism support for SimpleCov, currently only for CircleCI 1.0
License: MIT License
Parallelism support for SimpleCov, currently only for CircleCI 1.0
License: MIT License
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.