v2.1.x Chore - Check License in CI Testing #368
Labels
Chore
Miscellaneous chores to maintain the project
CI
Continuous Integration Tooling
enhancement
New feature or request
Multicast
Any main project file changes
Testing
Something can be verified
Milestone
🤔 Good idea; We should include the License in testing:
Test Criteria:
LICENSE.md
(select lines MUST match by HASH)Additional Context
This GHI is in response to the following comment
Tip
For best results, initiate chat on the files or code changes.
🧩 Analysis chain
@reactive-firewall I've verified the URL
https://raw.githubusercontent.com/reactive-firewall/multicast/HEAD/LICENSE.md
and confirmed it works correctly. This format with theHEAD
reference will indeed always point to the latest version of the license file in the repository, making it highly available as you noted.I found that:
setup.py
currently contains this reference which would need updating:The GitHub Action in
.github/workflows/pythonpackage.yml
only checks for the presence of the local LICENSE.md file and doesn't validate any URLs.This raw URL format is an excellent choice for package metadata purposes, including the TOML configuration you mentioned earlier.
🏁 Script executed:
Length of output: 2739
@reactive-firewall I've verified that the URL
https://raw.githubusercontent.com/reactive-firewall/multicast/HEAD/LICENSE.md
returns a valid 200 response and is accessible. This is a good choice as it will always reference the latest version of your license file regardless of branch changes.I found these references to the license URL in your codebase that would need updating:
In setup.py, there's a header comment referencing:
Your CI-BUILD workflow has a step that displays license information with:
This raw URL format with HEAD reference is an excellent choice for ensuring high availability and consistent access to the current license document.
✏️ Learnings added
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
Originally posted by @coderabbitai in #335
The text was updated successfully, but these errors were encountered: