-
Notifications
You must be signed in to change notification settings - Fork 34
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
test_kcidb: Add tests for kcidb-ingest #481
Conversation
774a242
to
a4ad646
Compare
@spbnick The tool |
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.
The tool kcidb-ingest or kcidb-notify get hang when I do not pass any arguments?
Not really, they simply wait for (JSON) input on standard input.
The change itself looks good, but it would be nice to add more sample data, as I mention in the inline comment. Thank you!
a4ad646
to
7650d14
Compare
@spbnick I see the failure deployment. It seems it is not relate to my change? |
I see connection failures in the latest results, and those seems to be an infrastructure issue. Try just restarting the job in this case. |
7650d14
to
fbd38a1
Compare
Thanks for working on this Hai. I have taken a closer look at what's going on there and found a couple issues in the notification templates, plus a couple problems with your test. I added a commit fixing the issues in the templates before yours. And another one fixing the test after yours. Please take a look, and squash the test fix into your commit, but please keep the template fix separate. Please also review my changes, and see if you can find anything wrong with them. One final thing: please add a blank line between the commit message subject (the first line) and the commit message body (everything else). This is the format most git tools expect and it messes up their output if the blank line is not there. GitHub tries to deal with it and hides the problem, but most other tools don't. |
Handle some missing values in issue and incident templates properly. The 'default' filter unfortunately handles 'undefined' only, so use a combination of the filter and the tests to handle both interim and final None values when accessing fields deep in a structure.
fbd38a1
to
92f173e
Compare
Will you be finishing this, @danghai? |
Hi @spbnick , sorry for late response because of vacation. I try to rebase, and squash the last 2 commit. I get this result for log. I think it is wrong?
I do command: |
Yeah, you squashed wrong commits, and you don't have the commit I pushed to your branch. You gotta do |
@danghai, you need to figure out how these things work. These skills are important for open-source contributors. Spend as much time as you need to slowly go through the steps, experiment, and learn. Some facts to get you started (which might or might not be useful for you):
Go and experiment with git, go through a couple tutorials, try to get a feel for it. Your target in this PR is to keep commit templates: Handle missing values in issues and incidents separate, but squash test_kcidb: Add tests for kcidb-ingest and tests: Misc fixes to test_ingest_main together, and pay attention to the resulting commit message, so it makes sense by itself and is not just two messages pasted together, and keeps to the standard format (subject on the first line, blank line, then the body). My request is a standard request that open-source maintainers make for contributions, and I (or others) cannot keep giving you exact instructions of how to fulfill it every time. |
92f173e
to
90ce6c4
Compare
@spbnick Thank you. I squash them together. Is it good enough? |
Thank you, Hai. The change itself looks good, but the commit message doesn't make much sense. You have to describe the change from the point of the parent commit. Let's take it piece by piece. Your commit message subject says: You have a blank line after the subject, great! Thanks 😁 Then the message body says: Finally, the message body says:
And that's not at all what the change actually does. There's no |
90ce6c4
to
d55c1f7
Compare
@spbnick Thank you. I update the change |
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.
LGTM! Thank you, Hai!
Fix: #242
Output: