Bug #15554
closed[crunchstat-summary] Fix live log reporting for crunch 2 v1.4+
Description
Currently crunchstat-summary assumes that if the log collection is available, that the container is no longer running, but this is no longer true, so it should be fixed to instead explicitly check the container state and use the live crunchstat data from the log table if the container is still running.
Updated by Tom Morris about 5 years ago
- Target version changed from 2019-08-28 Sprint to 2019-09-11 Sprint
Updated by Tom Morris about 5 years ago
To work around the CI build issue where it installs the published Python SDK, rather than the SDK from the branch being tested, I've split this into two branches, both of which are ready for review, but which need to be merged separately.
15554-python-sdk-constants @3c248f44a39ab0b792a8a91f875c4e09875bf54f just adds the three Python SDK constants
15554-crunchstat-summary-live-log @b3cf6fae4df6d9254a2dfa71a3ba555f4633127f has been rebased on top of it and force pushed
Updated by Eric Biagiotti about 5 years ago
Tom Morris wrote:
15554-crunchstat-summary-live-log @b3cf6fae4df6d9254a2dfa71a3ba555f4633127f has been rebased on top of it and force pushed
It seems as though summarizer.py ln 109 passes ProcessSummarizer a string, but it doesn't look like it can handle it unless I am missing something. If I am correct, we should probably fix it and add test coverage for that case. Other than that it LGTM!
Updated by Tom Morris about 5 years ago
Eric Biagiotti wrote:
It seems as though summarizer.py ln 109 passes ProcessSummarizer a string, but it doesn't look like it can handle it unless I am missing something. If I am correct, we should probably fix it and add test coverage for that case. Other than that it LGTM!
Good catch! I've fixed the bug, but didn't create a new test because it's a Crunch 1 only issue.
I gave up on trying to get the Python SDK dependencies to work with Jenkins. I switched back to a hardcoded string. Not ideal, but I've wasted waaaay too much time on this already.
15554-crunchstat-summary-live-log-no-sd @0c3e58f58b9fbcbbea69c7856ce70f73cbfbd73a
tests pass locally and running on Jenkins here: https://ci.curoverse.com/view/Developer/job/developer-run-tests/1516/
Updated by Lucas Di Pentima about 5 years ago
Updates on the 15554-crunchstat-summary-live-log-no-sdk
branch LGTM. Some Jenkins tests failed, but re-ran them locally without issues.
Updated by Tom Morris about 5 years ago
Merged @ b1f01918cfcd953e906d32691ddf76c0253a1948
Updated by Tom Morris about 5 years ago
- Status changed from In Progress to Resolved