Closed veaceslavdoina closed 1 year ago
@benbierens, looks like I've missed some important labels and we also should consider to have a consistency across the Kibana indices
_STATUS.log | Labels |
---|---|
- |
:green_circle: tests-type=dist-tests |
- |
:green_circle: app=codex |
:green_circle: "category": "Tests.PeerDiscoveryTests" |
:orange_circle: category=Tests.PeerDiscoveryTests |
:green_circle: "codexid": "7efa91" |
:orange_circle: codexid=7efa91 |
:green_circle: "fixturename": "PeerDiscoveryTests" |
:orange_circle: fixturename=PeerDiscoveryTests |
:green_circle: "runid": "20230808-120324" |
:green_circle: runid=20230808-120324 |
:green_circle: "status": "Passed" |
- |
:green_circle: "testduration": "1 mins, 34 secs" |
- |
:green_circle: "testid": "9840c50" |
:orange_circle: testid=9840c50 |
:green_circle: "testname": "VariableNodesInPods[20]" |
:orange_circle: testname=VariableNodesInPods[20] |
:orange_circle: "gethid": "%gethid%" |
:orange_circle: gethid=%gethid% |
:orange_circle: "prometheusid": "%prometheusid%" |
:orange_circle: prometheusid=%prometheusid% |
:orange_circle: "codexcontractsethid": "%codexcontractsethid%" |
:orange_circle: codexcontractsethid=%codexcontractsethid% |
To update
category
codexid
fixturename
testid
testname
gethid
prometheusid
codexcontractsethid
All right, so, yes there's no way to add test-duration and status pass/fail when the container is created. We don't know those things at that time. Additionally, some of these fields are applicable only in a dist-test situation, and not in a continuous-test situation. For example: testid. In dist-test, a Codex container in created for a specific test, so that makes sense. In continous-tests, the containers are already always there. All those tests use the same containers. I will set these not-applicable values so that they indicate they are not applicable in those situations.
All right, so, yes there's no way to add test-duration and status pass/fail when the container is created. We don't know those things at that time.
That is clear and we don't need that in labels. In the table we have "-
" for them and table itself to show consistency between _STATUS.log
and Labels
.
For example: testid. This is the GitHub short sha and if we will run Continuous fro GitHub Actions we will pass that value to the runner Pod.
Oh, one more important thing. The 'codexid' on the pod labels will never match the 'codexid' in the STATUS.log files. This is because we use the version information provided by the codex node via API call to fill in the codexid in the status log file. Which we obviously can't call before we start the container and we have to set the codexid label on the pod before then. There will be a different id, probably it will be the docker image sha.
Yeah, got the idea
But as you implemented - it will be the latest
or sha
(custom one we will set), both ways are working and yes, some search will be not so usefully, but we will be able to make a relations between the latest tag and codex app version.
runid
runid
in the _STATUS.log
and appropriate codexid
Intro
As for now, we are adding just basic labels to the Pods created during Dist-Tests and Continuous-Tests run
Screenshot
In that way it is not so suitable to configure logs shipping for Pods related to the Dist-Tests or Continuous-Tests. We should consider to label Pods in the way which should permit us to differentiate the Pods
Proposal
Every pod created during the tests run should contain the following lables
dist-tests
/continuous-tests
tests-type=dist-tests
codex
(nim-codex
) /codex-contracts-eth
/geth
/prometheus
app=codex
20230721-085043
/20230721-061018
runid=20230721-085043
In that way we will be able to
Reference