Why don't I see collected time execution data for my build in the user dashboard?
If you visit the user dashboard and open Build metrics
for your API token, then open the build for your last git commit, you should find information about the collected execution time data from all CI nodes. If the collected execution time data for CI nodes is missing, please ensure the following:
- You have included
Knapsack::Adapters::RspecAdapter.bind
in yourrails_helper.rb
orspec_helper.rb
. - You have explicitly set
RAILS_ENV=test
on your CI nodes. For instance, if you are using Docker, please ensureRAILS_ENV
is set. - For
knapsack_pro
Queue Mode (versions older than 3.1.0), temporary files with collected execution time data are saved inyour_rails_project/tmp/knapsack_pro/queue/
. Make sure not to clean thetmp
directory during your tests, allowingknapsack_pro
to publish execution time data to the Knapsack Pro API server. Forknapsack_pro
version 3.1.0 and newer, the.knapsack_pro
directory is used to store temporary files.