Closed
Description
Improve and Generalize fetch-test-reporter
tool
Improvements
CEP-8 Compliance
-
change lines around 158 to code
77
for permission errors -
change lines around 162 to use standard CEP-8 exit codes.
-
change lines around 80 thru 84 to also similarly check for architecture on linux (e.g.
amd64
vsarm
)
Generalizing
- Add diagram of basic workflow to documentation somewhere.
sequenceDiagram
participant Script as Fetch Reporter Script
participant System as OS & Architecture Detector
participant Remote as GitHub/Service API
Script->>Script: Check for required commands (grep, curl, find, git, shlock)
Script->>System: Detect OS and architecture details
System-->>Script: Return environment info
Script->>Remote: Download reporter file with hash verification
Remote-->>Script: Supply file and hash
Script->>Script: Validate integrity and permissions
Script->>User: Output status and errors
- change script name from
fetch_cc-test-reporter
tofetch-test-reporter
for readability.
- add implementations to fetch and check other services like
-
app.deepsource.com
- perhaps Coveralls, etc.
-
- consider moving to a gist as a submodule