8000 task: adds event diagnostics for failed tests by shawkins · Pull Request #26864 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

task: adds event diagnostics for failed tests - #26864

Merged
shawkins merged 1 commit into
keycloak:mainfrom
shawkins:iss26836
Feb 7, 2024
Merged

shawkins merged 1 commit into
keycloak:mainfrom
shawkins:iss26836

Conversation

@shawkins
@shawkins shawkins commented Feb 7, 2024
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
@mabartos
mabartos commented Feb 7, 2024
Copy link
Copy Markdown
Member

@shawkins Nice! You don't have any run with the logs, right? I'll try to use it in #26661 as it's sometimes a little bit challenging to get relevant info.

@shawkins
shawkins commented Feb 7, 2024
Copy link
Copy Markdown
Contributor Author

You don't have any run with the logs, right?

Not yet - this does not seem reproducible locally.

@mabartos mabartos left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. At least we have some additional info about events, nice job!

Just wondering whether there's any other option, as the format of the logging for Operator tests is kinda not very well readable.

As you can see the Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents is little bit overkilled here. I like the concatenation of the pckg name as Quarkus does.

f.e. 2024-02-07 15:58:17,584 INFO [io.qua.dep.QuarkusAugmentor] (main) Quarkus augmentation...

But it's out of scope of this PR.

LGTM like this.


Example log:

INFO: Event last seen 2024-02-07T14:45:56Z repeated 1 times - Normal SuccessfulCreate example-kc.17b19be85bf154eb create Pod example-kc-0 in StatefulSet example-kc successful
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
WARN: Event last seen 2024-02-07T14:45:56.027695Z repeated 1 times - Warning FailedScheduling example-kc-0.17b19be85bf6197b 0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
INFO: Event last seen 2024-02-07T14:45:55Z repeated 1 times - Normal Pulling postgresql-db-0.17b19be823bdcd0b Pulling image "quay.io/sclorg/postgresql-15-c9s:latest"
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
INFO: Event last seen 2024-02-07T14:45:55Z repeated 1 times - Normal Pulled postgresql-db-0.17b19be83ffeb029 Successfully pulled image "quay.io/sclorg/postgresql-15-c9s:latest" in 473.998164ms (474.002178ms including waiting)
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
INFO: Event last seen 2024-02-07T14:45:55Z repeated 1 times - Normal Created postgresql-db-0.17b19be841e30dcf Created container postgresql-db
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
INFO: Event last seen 2024-02-07T14:45:55Z repeated 1 times - Normal Started postgresql-db-0.17b19be845767c32 Started container postgresql-db
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
INFO: Event last seen 2024-02-07T14:45:54Z repeated 1 times - Normal SuccessfulCreate postgresql-db.17b19be80af2d533 create Pod postgresql-db-0 in StatefulSet postgresql-db successful
Feb 07, 2024 3:46:16 PM org.keycloak.operator.testsuite.integration.BaseOperatorTest logEvents
INFO: Event last seen 2024-02-07T14:45:54.672953Z repeated 1 times - Normal Scheduled postgresql-db-0.17b19be80b366b0e Successfully assigned keycloak-test-bf3ee95a-df23-48f8-8567-60606e4362b0/postgresql-db-0 to minikube

@shawkins
shawkins merged commit d03b25b into keycloak:main Feb 7, 2024
cavuugroup pushed a commit to cavuugroup/keycloak that referenced this pull request Feb 8, 2024
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Krzysztof Walczewski <kwalczewski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0