Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces new changes to make the gem multi-job:
FailingSpecFormatter
failures_log_#{ENV.fetch('TEST_ENV_NUMBER', nil)}.yml
and"exceptions_log_#{ENV.fetch('TEST_ENV_NUMBER', nil)}.yml"
files. meaning that each job will have two YAML files storing failures and exceptions that we must remember to upload as artefacts when setting up theci.yml
.failing_specs_detector:combine_log rake task
failing_specs_detectr_log.txt
the task should be run after the spec jobs in a separate job and should download the uploaded artefacts.The PR also adds .github/workflows ci configuration. the second jobs is an example on how the result will look like in the console after running the rake task
Test
To test this on a project you can follow these steps:
Add the Gem to the Gemfile
Add this to your Rakefile:
Configure Github workflows, here's an example:
Download the log file from
https://github.com/**/**/actions/runs/***
check the latest workflow run artifacts the failing_specs_log will be listed there you can download it and check it locallyPossible issues:
When using deprecations_detector alongside this gem, I ran into an issue when downloading the deprecations artifacts the action was also downloading the failures and exceptions logs which caused the deprecations job to fail. Please make sure to use the name attribute when downloading the deprecations. Example: