-
Notifications
You must be signed in to change notification settings - Fork 30
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
chore(test): Add configurable opts to e2e tests #239
Conversation
508d129
to
d8a07b7
Compare
@yitsushi is the test failure i am seeing vv the thing that a commit in your iface pr is going to fix? |
Hopefully. I did not see errors yet on my branch. And it has much better error message instead of a huge timeout panic. |
Codecov Report
@@ Coverage Diff @@
## main #239 +/- ##
===========================================
- Coverage 55.81% 40.63% -15.19%
===========================================
Files 44 46 +2
Lines 2012 2146 +134
===========================================
- Hits 1123 872 -251
- Misses 781 1214 +433
+ Partials 108 60 -48
Continue to review full report at Codecov.
|
d8a07b7
to
f16eff7
Compare
ffs since i cannot comment inline apparently: the action update should have been an |
1a4cb0a
to
c0336fa
Compare
c0336fa
to
482f997
Compare
482f997
to
e70071d
Compare
I have added the initial frame for custom test flags. So far just the options to: - Skip setting up the devmapper thinpool - Skip deleting VMs - Skip all teardown steps - Set log level for containerd - Set log level for flintlockd Unfortunately custom test flags can only be added on `init()` which is bleh but I don't see another nice was of doing this. These flags can only be used while running `go test ...` directly. This means you cannot pass in flags as part of a `make` or a `docker run -it ...` command, but you can just call `go test etc` from inside the container or in the metal host and configure what you like. My next step is some more work around the python tooling so that these (and more) options can be passed up.
e70071d
to
8a41089
Compare
.github/workflows/nightly_e2e.yml
Outdated
@@ -8,6 +8,7 @@ on: | |||
jobs: | |||
e2e: | |||
runs-on: ubuntu-latest | |||
if: ${{ secrets.METAL_AUTH_TOKEN != '' && secrets.EQUINIX_ORG_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.
Tried to add a similar check on the docs publish job, but secrets can't be used in condition.
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 logic is a valid workaround:
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'weaveworks' }}
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.
boooo stack overflow lied to me 😭
okay ty
8a41089
to
29cd4bf
Compare
I have added the initial frame for custom test flags.
So far just the options to:
Unfortunately custom test flags can only be added on
init()
which isbleh but I don't see another nice was of doing this.
These flags can only be used while running
go test ...
directly.This means you cannot pass in flags as part of a
make
or adocker run -it ...
command, but you can just callgo test etc
from inside thecontainer or in the metal host and configure what you like.
My next step is some more work around the python tooling so that these
(and more) options can be passed up.
part of #146