-
Notifications
You must be signed in to change notification settings - Fork 31
RoF #325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
[skip ci]
ArturT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
| end | ||
|
|
||
| if test_files.empty? | ||
| KnapsackPro.logger.warn("No test files were executed on this CI node.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question
No message at all? I recall people saying that some nodes are not running tests. They assumed this was a bug. This message is intended to clarify that this is expected behaviour.
| KNAPSACK_PRO_PROJECT_DIR=. \ | ||
| KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \ | ||
| KNAPSACK_PRO_CI_NODE_INDEX=${1:-0} \ | ||
| KNAPSACK_PRO_TEST_QUEUE_ID=${3:-$CI_BUILD_ID} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question
Is this needed in the regular mode? I think it's not. You could remove it then.
|
|
||
| it 'logs a warning' do | ||
| expect(described_class).to receive(:warn).with( | ||
| 'You have set the environment variable KNAPSACK_PRO_TEST_QUEUE_ID to env:456 which could be automatically determined from the CI environment as abc:123.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion
This message could be more actionable. Tell the user to remove KNAPSACK_PRO_TEST_QUEUE_ID.
Description
See https://github.com/KnapsackPro/knapsack-pro-api/pull/1433
Checks
UNRELEASEDsection of theCHANGELOG.md, including the needed bump (i.e., patch, minor, major)lib/knapsack_pro/pure/queue/rspec_pure.rbcontains pure functions that are unit tested.lib/knapsack_pro/extensions/rspec_extension.rbencapsulates calls to RSpec internals and is integration and E2E tested.lib/knapsack_pro/runners/queue/rspec_runner.rbinvokes the pure code and the extension to produce side effects, which are integration and E2E tested.