You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by "royteeuwen (via GitHub)" <gi...@apache.org> on 2026/08/30 20:48:05 UTC
[PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
royteeuwen opened a new pull request, #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58
[SLING-13321](https://issues.apache.org/jira/browse/SLING-13321) asks for the release conclusion email to be part of the original vote thread rather than a standalone message. This picks up where [rombert's WIP branch](https://github.com/apache/sling-org-apache-sling-committer-cli/compare/issue/email-in-reply-to?expand=1) left off, with a different approach to finding the vote email (see below).
## Threading the `[RESULT]` email
The `[RESULT]` email now carries `In-Reply-To` and `References` pointing at the `[VOTE]` email, so a release stays one conversation in the archive and in threading mail clients. The subject keeps its `[RESULT]` prefix, as is conventional at the ASF.
```
From: Joerg Hoh <jo...@apache.org>
To: "Sling Developers List" <de...@sling.apache.org>
Reply-To: "Sling Developers List" <de...@sling.apache.org>
Date: Thu, 20 Aug 2026 12:47:00 +0200
In-Reply-To: <55...@85ae3d6cc5e6>
References: <55...@85ae3d6cc5e6>
Subject: [RESULT] [VOTE] Release Apache Sling Security 1.3.2
```
`--no-reply-to-vote-email` sends it standalone instead.
The `Message-ID` is read from the `stats.lua` search response, which already reports it per email, rather than parsed out of the message source.
## Finding the vote email by subject
The vote email used to be identified by position (`skip(1)`). That is not reliable: the archive search only looks back six months, so a vote opened before the start of that window returns replies only, and the first genuine voter was then silently dropped from the tally. The vote email is now identified by its subject — only the original starts with `[VOTE]`, since replies carry a `Re:`-style prefix and a result email carries `[RESULT]`.
When no `[VOTE]` email is found the command warns, keeps the previous behaviour and sends the result email unthreaded rather than replying to a reply.
The thread lookup now uses the full release name, matching the subject `prepare-email` actually generates.
## A vote-counting bug found along the way
The `[RESULT]` email repeats the tally it announces (`+1 (binding): ...`), which the `+1` detection counted as a vote by the release manager who sent it. Re-running `tally-votes` for a release therefore credited the release manager with a vote they never cast, in the binding list when they are a PMC member. It is masked whenever the release manager also voted, since both resolve to the same member.
Verified against the archive — re-running `tally-votes` today for two past releases, before the fix:
| Release | Generated | Actually sent |
|---|---|---|
| Resource Resolver 1.12.16 | `+1 (non-binding): Roy Teeuwen` | `+1 (non-binding): none` |
| Feature Model Analyser 2.0.16 | `+1 (binding): Carsten Ziegeler, Joerg Hoh, Stefan Seifert, Robert Munteanu` | `+1 (binding): Carsten Ziegeler, Joerg Hoh, Stefan Seifert` |
Neither had voted. Both now match what was sent. This is a pre-existing bug independent of the threading change, so the second commit cherry-picks onto master on its own if it would rather be tracked as its own issue.
## Testing
New `VoteThreadFinderTest`; `TallyVotesCommandTest` grows from 4 to 8 tests, covering the opt-out flag, a vote email without a `Message-ID`, a vote email outside the lookup window, and a `[RESULT]` email from an earlier run. Full suite is green at 195 tests.
Beyond the unit tests, the command was driven end-to-end in `DRY_RUN` against the live archive and the live (public) Whimsy roster with only Nexus stubbed, for four real releases. Every generated tally matched the `[RESULT]` email that was actually sent, and every `In-Reply-To` matched the real `[VOTE]` email's `Message-ID`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5558927709
## [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) **Quality Gate failed**
Failed conditions
 [79.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&metric=new_coverage&view=list) (required ≥ 80%)
<!-- sqra:qg_revision=22efbd50821ab6790e4ad2b379837d9acde890df4018c98485c6e98ddce6941c -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "joerghoh (via GitHub)" <gi...@apache.org>.
joerghoh commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5539779738
A bit late to the party, but can you split the actual feature implementation from the bugfix in the vote counting? Having both in the same PR makes the review harder.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "royteeuwen (via GitHub)" <gi...@apache.org>.
royteeuwen commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5558901061
Not late at all — done. Split into a two-PR stack:
- **#58** (this one, base `master`) — the SLING-13321 feature: threading the `[RESULT]` email onto the `[VOTE]` email, plus identifying the vote email by subject instead of by position.
- **#59** (stacked on this) — the vote-counting bugfix: not counting an earlier run's `[RESULT]` email as a vote.
No code changed in the split — the two commits were already separate, so each PR is exactly the commit that was already here, and both build and pass on their own.
The bugfix is genuinely independent of the feature; it is only stacked rather than parallel because both touch the same tally expression and would otherwise conflict. If you would rather it land first and independently, I can flip the stack order — it needs a small rework of both diffs, but nothing structural. Likewise happy to file it under its own Jira issue if you would prefer that over sharing SLING-13321.
One thing I would value your opinion on while you are in here, called out in the description above: we kept the `[RESULT]` subject prefix per ASF convention, so the threading is done purely with `In-Reply-To`/`References`. That is correct for the archive and for threading clients, but Gmail also weighs subject similarity and may still split it into its own conversation. If your goal was one conversation in your mail client, a plain `Re: [VOTE] Release …` subject would be more reliable — at the cost of a prefix the project has used for years. Your call.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "kwin (via GitHub)" <gi...@apache.org>.
kwin commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5561549359
Shouldn’t we rather start adopting https://releases.apache.org/docs/?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5483732115
## [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [82.7% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5561446642
## [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [83.9% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5471232944
## [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) **Quality Gate failed**
Failed conditions
 [79.7% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58&metric=new_coverage&view=list) (required ≥ 80%)
 [C Reliability Rating on New Code](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) (required ≥ A)
<!-- sqra:qg_revision=fa15defb5054072ade87eedea47782f4f2f616b6cddb439890eef25847ab0fd2 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58)
##
 Catch issues before they fail your Quality Gate with our IDE extension  [SonarQube for IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13321 - send the release result email as part of the vote thread [sling-org-apache-sling-committer-cli]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #58:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/58#issuecomment-5471203158
## [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) **Quality Gate failed**
Failed conditions
 [C Reliability Rating on New Code](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58) (required ≥ A)
<!-- sqra:qg_revision=ccd93acd51469142192d71ebf934ea94ed632153a5a2cdad3aeca894b4b2e9f3 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=58)
##
 Catch issues before they fail your Quality Gate with our IDE extension  [SonarQube for IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org