-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48623: [CI][Archery][Dev] Add missing headers to email reports #48624
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
base: main
Are you sure you want to change the base?
Conversation
|
|
556d06f to
12b1981
Compare
12b1981 to
8cedff5
Compare
|
From #48623 (comment)
At present, the headers have to be generated in lots of places, which means more maintenance and more testing. As to doing a dry-run, that depends on whether you need to see all the headers or just the body. The Python email library builds up the message for sending, and you can just print the message instead of sending it. |
|
AFAICT when you refer to dry-run, you mean using something like If the templates no longer contain the headers, then of course they won't be shown. I think the simplest way round this is to add a The dry-run code would then need to be changed to
|
|
Thanks. I understand your point. We should provide a function for general headers generation, right? How about the 6b31c32 approach? |
This does not solve the issue that mail headers need special handling, and still leaves multiple locations to be maintained and tested. |
What does the "special handing" mean? I thought that it's non ASCII characters encoding, folding a long line and so on. And I thought that all of them are processed by the
What does the "multiple locations" mean? We should not have header related information in |
I see that most of the header values are passed to Also I see that the tests don't account for
That the same code appears in multiple locations. By which I mean that the code transforms the data. |
Rationale for this change
Our email reports miss the following headers:
MIME-Version: 1.0Content-Type: text/plain; charset="utf-8"Message-Id: ${AUTO_GENERATED_MESSAGE_ID}Date: ${DATE_IN_RFC_2822}What changes are included in this PR?
Add these headers.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.