You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "sbp (via GitHub)" <gi...@apache.org> on 2026/04/16 19:37:41 UTC

Re: [I] Allow more flexible naming for npm artifacts (tooling-trusted-releases)

sbp commented on issue #758:
URL: https://github.com/apache/tooling-trusted-releases/issues/758#issuecomment-4262889507

   @erisu I revisited this and have attempted to resolve it. ATR classifies files in a release as source, binary, or a few other types less relevant to this issue. Source means that it's an source distribution of the (P)PMC, and will be approved as an official ASF product (or whatever the precise relevant terminology is) by the board. Binary means that the (P)PMC is distributing this as a convenience to users. "Binary" doesn't mean that it's necessarily binary; it might be a bundle of entirely source files, as is often the case for Python wheels or npm packages in general, so perhaps we should rename this to something else.
   
   The problem you faced was that ATR was complaining about the root directory being wrong for npm "binaries" (convenience packages, non-official release files from the board point of view). In addition, it was misclassifying your npm binaries as source archives. You suggested using the convention `-npm-` as a marker for such convenience packages, but in 3f201264506da4c62c9878f5fece046860e1591e I had implemented detection for the first problem based on the content of the package. This should be more reliable, and does not rely on release managers to know about or remember any naming conventions.
   
   In revisiting this, I have solved the second problem in essentially the same way. Our classifier worked based on filenames only, and used various heuristics to detect whether a file is source, binary, or other. But we had long discussed using the content of files to inform classification, as long as we could keep it lightweight. I have added npm packages as the first test case of this in 8d9c8067730fa8dd4268950710f50bc855851754, which I consider resolves the present issue. If you have any questions, would like to propose any alternative solutions, or have any problems, please let us know! We'll close this issue but you can still comment on it, or open a new issue, at your option.
   


-- 
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: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org