-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
1300e67
to
97ccbbb
Compare
Codecov Report
@@ Coverage Diff @@
## master #1001 +/- ##
==========================================
+ Coverage 81.95% 82.04% +0.09%
==========================================
Files 188 188
Lines 13202 13219 +17
==========================================
+ Hits 10820 10846 +26
+ Misses 2382 2373 -9
Continue to review full report at Codecov.
|
3ea3457
to
b550165
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.
I think this looks about right. The Jenkins failure is from the hsm_prov test; it's probably transient.
conf.storage.path = temp_dir.Path(); | ||
conf.provision.expiry_days = "noerrors"; | ||
conf.provision.primary_ecu_serial = "noerrors"; | ||
conf.provision.primary_ecu_hardware_id = "download_failure"; |
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 there a significance to "download_failure" here? I think I created it with the intention that it would be used by the fake server to trigger the download failures.
@@ -8,7 +8,24 @@ | |||
|
|||
class Handler(BaseHTTPRequestHandler): | |||
def do_GET(self): | |||
pass | |||
if self.path.startswith("/repo/targets/noerrors"): |
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 this really be for "noerrors"? Won't this get triggered for all the network tests?
I merged my large PR, so this needs to be rebased. I fixed one of the flaky tests, though, so at least that's one less thing to worry about. |
b550165
to
ea698fa
Compare
I can't look in to the Jenkins |
Sorry. It's hsm_prov again. I don't understand why it is failing, but here's the log:
I restarted it in case it is just transient, but since it's happened two or three times now, it probably isn't. |
b80af8f
to
19f2d6b
Compare
I've narrowed the problem down to the changes to It may also need a fix for reboot detection. (FYI @lbonn) At least when I test locally, I have to add something like this to my config:
Otherwise it complains with |
It looks like it is the same curl bug that @OYTIS initially bumped into (see TODO in It's actually not an unknown bug anymore, I tracked it down to curl/curl#2829. For current distributions, the workaround is still required but can probably be shortened to:
This line should be enough in all cases and I suggest we'd put that in an internal wrapper for cloning curl handles to refactor it. |
Agreed. I'll update this and try to take care of it since i'm already in the middle of it. |
Signed-off-by: Patrick Vacek <[email protected]> Signed-off-by: Serhiy Stetskovych <[email protected]>
Signed-off-by: Serhiy Stetskovych <[email protected]> Signed-off-by: Patrick Vacek <[email protected]>
Signed-off-by: Serhiy Stetskovych <[email protected]> Signed-off-by: Patrick Vacek <[email protected]>
19f2d6b
to
1c1236f
Compare
src/libaktualizr/http/httpclient.cc
Outdated
CURL* curl_post = Utils::curlDupHandleWrapper(curl, pkcs11_key); | ||
curlEasySetoptWrapper(curl_post, CURLOPT_URL, url.c_str()); | ||
curlEasySetoptWrapper(curl_post, CURLOPT_POST, 1); | ||
if (pkcs11_key) { |
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 be unneeded here (in Utils::curlDupHandleWrapper)
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.
Yep, that was a mistake. Fixed.
1c1236f
to
7d01357
Compare
Now wrapped in a convenience function to make life easier. Signed-off-by: Patrick Vacek <[email protected]>
7d01357
to
17e75b6
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.
I think this is done now. Any further thoughts from anyone before we merge it?
Looks good for me |
No description provided.