-
Notifications
You must be signed in to change notification settings - Fork 1
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 tests: flaky and not #54
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.
Thank you for the investigation and the problem solution! 👍
.github/workflows/ci.yaml
Outdated
@@ -13,7 +13,7 @@ jobs: | |||
name: Run tests | |||
strategy: | |||
matrix: | |||
python-version: [3.6, 3.7] | |||
python-version: [3.6], 3.7] |
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.
Is it means, that tests will be executed on 3.6 only?
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.
temp changes, to be reverted
tests/e2e/test_main.py
Outdated
@@ -287,6 +295,7 @@ def test_image_build_env(cli_runner: CLIRunner) -> None: | |||
assert result.returncode == 0, result | |||
|
|||
secret = str(uuid.uuid4()) | |||
print("secret", secret) |
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.
do we need it for debugging purposes?
mb let's hide it behind
try:
assert result.returncode == 0, result
except AssertionError as e:
click.echo(f"secret: {secret}")
raise
(the same for line 333)
Also, shouldn't the image name in line 165, 271 and 318 be also unique?
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.
temp changes too
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.
mb let's hide it behind
no need to add logic for debug purposes only, tests should be as simple as possible
fbdd369
to
9c4ef76
Compare
neuro image tags
test
Problems:
neuro image tags
for images with >30 tags platform-registry-api#209. Needed to make CI green to make a release.assert f"git_token={secret}" in result.stdout
didn't show up in stdout because this layer was cached and wasn't executed.Thanks @YevheniiSemendiak and @mariyadavydova for helping debug the problem!