Comments (5)
Yep, we had some spec that was deleting all json files in the project root. ugh.
from knapsack.
Do you have knapsack_rspec_report.json
committed into your repo?
What is the knapsack command to run tests defined in GitLab CI yaml config?
Can you share the GitLab CI config?
BTW How long it takes to run your tests now?
from knapsack.
Yes, I have the json report committed. The command I'm using is bundle exec rake "knapsack:rspec[--tag ~flaky --tag ~broken]"
. The full suite takes about 120 minutes in serial, but split on GitLab CI it's about 20-25 minutes per job.
I'll obfuscate some of the company specific details in the GitLab yaml and share in a follow-up comment.
from knapsack.
image: "ruby:2.3"
services:
- mongo
- mysql
variables:
RAILS_ENV: "test"
DB_HOST: "mysql"
MYSQL_DATABASE: "test"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
TZ: US/Pacific
cache:
paths:
- vendor/bundle
before_script:
- ruby -v # Print out ruby version for debugging
- apt-get update -q && apt-get install mysql-client nodejs -yqq
- mkdir $HOME/tmp
- bundle install --local --path vendor/bundle
- bundle exec rake db:structure:load
- bundle env
rspec:
script: bundle exec rake "knapsack:rspec[--tag ~feature --tag ~rtpos]"
parallel: 6
artifacts:
reports:
junit: rspec.xml
paths:
- rspec.xml
- failures/
when: always
from knapsack.
I just re-ran the tests using the seed from a failed job and the appropriate CI NODE env vars and I think one of our tests deleted the json file. I'll follow up if that is indeed the case.
from knapsack.
Related Issues (20)
- .rspec config looks ignored even in Regular Mode HOT 2
- Knapsack::Adapters::RSpecAdapter does not track time spent in `before` or `after` `:context` HOT 3
- Time execution for pending test file can't be measured due to exception HOT 1
- Cucumber split by scenario and not feature HOT 1
- how often to update knapsack_minitest_report.json timings report HOT 4
- knapsack is skipping some rspecs HOT 3
- Segmentation error under ruby 2.5.0 HOT 2
- How can this be used with the Kubernetes Jenkins Plugin that dynamically creates Jenkins slaves HOT 1
- `uninitialized constant ActiveSupport` with Minitest runner HOT 3
- send complete test coverage report from circleCI building specs to codeclimate HOT 3
- Knapsack does handle signals
- Generate report on minitest HOT 7
- All tests run when no spec files are found HOT 3
- cucumber runner exits with non-zero code even though tests passed HOT 12
- Some cucumber test files run via several CI jobs HOT 5
- Knapsack not generating report for rspec HOT 4
- Hide Knapsack Time Offset Warning block? HOT 1
- Feature Request: Prioritise spec files HOT 1
- Load Balancing Algorithm doesn't consider weight of nodes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knapsack.