-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feat/windows tests in cicd pipeline #244
Conversation
fb3573b
to
99a03b7
Compare
f9c8d91
to
0d26de4
Compare
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.
Nice!
2090272
to
9dd589a
Compare
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.
first - this is absolutely amazing!! 🤯
- since one of the commits is a
feat
maybe we want to rename the PR title to befeat
as well? - regarding the docker socket that's not covered in tests, is it working at all? or just not covered
package.json
Outdated
@@ -17,6 +17,7 @@ | |||
"lint": "prettier --check '{lib,test}/**/*.ts' && tslint --format stylish '{lib,test}/**/*.ts'", | |||
"format": "prettier --loglevel warn --write '{lib,test}/**/*.ts' && tslint --fix --format stylish '{lib,test}/**/*.ts'", | |||
"test": "npm run lint && npm run unit-test", | |||
"test-windows": "prettier --check \"{lib,test}/**/*.ts\" && tap test/windows -R=spec --timeout=300", |
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.
should the prettier
part be in here?
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.
well, actually I can just npm run lint
instead 👍
@@ -1,3 +1,4 @@ | |||
import { normalize as normalizePath } from "path"; |
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.
we do we sometimes use normalize
as is and sometimes rename is to normalizePath
?
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.
I will unify that as use just normalizePath
as it's more explicit! 👍
@@ -0,0 +1,81 @@ | |||
import * as path from "path"; |
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.
what's the difference in the windows specific tests? why do we need them?
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.
There isn't much difference, just normalising the paths, etc. We've decided to go this way, as it wasn't feasible to run all the tests on windows, lots of them are irrelevant and/or we didn't quite work out why they are failing (like the docker socket one). So the best solution for now was to have few dedicated tests, covering high level paths. So there's duplication but I think it's nicer than having a check if platform is windows in every test, wdyt?
9dd589a
to
fe3b9ff
Compare
fe3b9ff
to
522bad9
Compare
84aad3d
to
93e135b
Compare
The plugin currently works only with Unix/POSIX-style paths and cannot scan container images while running on Windows.
Added mainly high level tests covering plugin response and a unit test covering pulling from container registry.
93e135b
to
24fe47c
Compare
Expected release notes (by @agatakrajewska) features: fixes: others (will not be included in Semantic-Release notes):
|
🎉 This PR is included in version 3.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Adds support for Windows in the plugin and adjusts the tests and CI pipeline accordingly.
Where should the reviewer start?
Commit by commit 😉
What are the relevant tickets?
Jira ticket RUN-1100