-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implement custom tester functionality in Skaffold #5451
Implement custom tester functionality in Skaffold #5451
Conversation
…() to reduce code redundancy.
…ewTester() to reduce code redundancy." This reverts commit 5e1d859.
…() to reduce code redundancy.
Codecov Report
@@ Coverage Diff @@
## master #5451 +/- ##
==========================================
- Coverage 71.49% 71.41% -0.09%
==========================================
Files 397 398 +1
Lines 14577 14653 +76
==========================================
+ Hits 10422 10464 +42
- Misses 3387 3410 +23
- Partials 768 779 +11
Continue to review full report at Codecov.
|
…om test fields are not available in the current version of the skaffold config.
@briandealwis & @tejal29, thank you for the reviews. I have addressed all the feedback. Welcome more. Otherwise, I'd like to get this into a good state for approval so that I can move on to #5431. |
Thanks @PriyaModali. Can you mention little bit in the description what are the output changes. It will be great to include example running I would probably do the following testing and add Testing notes e.g. 0, 1
|
Added Testing notes and future work to the description. |
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.
something went wrong with github and not all comment went through last time.
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.
This is almost done. The integration test needs another instance to verify the test-dependencies-from-a-command, particularly for Windows.
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.
Two small changes and good to go.
Note that the ./test.sh
will fail on Windows, but we're not running our integration tests on Windows. I suspect we'll have many other fixes requires for integration tests on Windows.
Fixes: ##5395
Description
Add new custom tester functionality to Skaffold. This feature enable users to run custom tests in the Skaffold pipeline.
The test command:
Run
skaffold dev
to run the command in the Skaffold pipeline.Added unit tests and integrations tests for the newly added test command.
Related:
#5333
Note:
Right now, changing a test dependency file does not trigger a build but triggers only deployment.
Follow up work:
Changing a test dependency file does not trigger a build but will trigger test.
Example
The functionality can be tested using the example in the integration tests:
skaffold/integration/examples/custom-tests
Testing notes
Here are some sample outputs: