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
fix(test): skip artifact private repo test. Fixes: #8953 #9838
Conversation
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 are already environment variables that controls this test
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.
.
ce8f1e1
to
40a9da4
Compare
I see then how about just update document and git hook pre-commit message. Let me know if you have another suggestion. |
docs/running-locally.md
Outdated
@@ -199,6 +199,7 @@ Before you commit code and raise a PR, always run: | |||
|
|||
```bash | |||
make pre-commit -B | |||
CI=true make test |
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 wrong? CI should be false/unset unless on CI.
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.
Agreed, just try to skip the test.
So, updated to skip it directly as you mentioned in #8953.
f4b2e8f
to
793527b
Compare
@@ -25,6 +25,10 @@ func TestGitArtifactDriver_Load(t *testing.T) { | |||
assert.DirExists(t, path) | |||
}) | |||
t.Run("PrivateRepo", func(t *testing.T) { | |||
|
|||
// TODO: temp - skip private repo test for everyone |
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.
why do you want to skip this test?
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.
As @alexec mentioned here
#8953 (comment)
Signed-off-by: ibotdotout <tkroputa@gmail.com>
Head branch was pushed to by a user without write access
3340b75
to
a4a3c33
Compare
Could you help to merge ? |
…oproj#9838) Signed-off-by: ibotdotout <tkroputa@gmail.com> Signed-off-by: juchao <juchao@coscene.io>
Fixes #8953
IntroducedSKIP_PRIVATE_REPO
environment variable to skipTestGitArtifactDriver_Load PrivateRepo
test that some contributors lack of private repo access.Update test to skip
TestGitArtifactDriver_Load PrivateRepo
.Please do not open a pull request until you have checked ALL of these:
make pre-commit -B
to fix codegen and lint problems.If changes were requested, and you've made them, dismiss the review to get it reviewed again.