-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Chore: pdf smoke test
We have seen issues with tests build on circle ci passing but pdf generation on the alpine build failing This PR attempts to add a rake task to test imapct of smoke testing a Grover test before pushing to ECR
1 parent
25ed4bc
commit de3a3e4
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace :smoke_test do | ||
desc "Tries to generate a grover document" | ||
task pdf: :environment do | ||
Timeout.timeout(10) { Grover.new("test").to_pdf.size } | ||
Rails.logger.info "PDF generation succeeded" | ||
rescue Timeout::Error | ||
raise StandardError, "PDF generation failed" | ||
end | ||
end |