Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Code Coverage Automation #9

Code Coverage Automation

Code Coverage Automation #9

Triggered via pull request January 9, 2024 20:38
Status Failure
Total duration 49s
Artifacts

robot-workflow.yml

on: pull_request
Style Check Code with Black
21s
Style Check Code with Black
Run the WPIlib Simulator
38s
Run the WPIlib Simulator
pyfrc Unit tests
33s
pyfrc Unit tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors, 3 warnings, and 3 notices
pyfrc Unit tests
Cannot read .coverage files because files are absolute. You need to configure coverage to write relative paths by adding the following option to your coverage configuration file: [run] relative_files = true Note that the specific format can be slightly different if you're using setup.cfg or pyproject.toml. See details in: https://coverage.readthedocs.io/en/6.2/config.html#config-run-relative-files
pyfrc Unit tests
Critical error. This error possibly occurred because the permissions of the workflow are set incorrectly. You can see the correct setting of permissions here: https://github.com/py-cov-action/python-coverage-comment-action#basic-usage Otherwise please look for open issues or open one in https://github.com/py-cov-action/python-coverage-comment-action/ Traceback (most recent call last): File "/workdir/coverage_comment/subprocess.py", line 22, in run return subprocess.run( ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '('coverage', 'json', '-o', '-')' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/workdir/coverage_comment/main.py", line 44, in main exit_code = action( ^^^^^^^ File "/workdir/coverage_comment/main.py", line 96, in action return process_pr( ^^^^^^^^^^^ File "/workdir/coverage_comment/main.py", line 127, in process_pr _, coverage = coverage_module.get_coverage_info( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workdir/coverage_comment/coverage.py", line 99, in get_coverage_info subprocess.run("coverage", "json", "-o", "-", path=coverage_path) File "/workdir/coverage_comment/subprocess.py", line 34, in run raise SubProcessError("\n".join([exc.stderr, exc.stdout])) from exc coverage_comment.subprocess.SubProcessError: No source for code: '/home/runner/work/1721-Crescendo/1721-Crescendo/rio/commands/FlyByWire.py'.
Style Check Code with Black
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
pyfrc Unit tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run the WPIlib Simulator
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
pyfrc Unit tests
Starting action
pyfrc Unit tests
HTTP Request: GET https://api.github.com/repos/FRC-1721/1721-Crescendo "HTTP/1.1 200 OK"
pyfrc Unit tests
Generating comment for PR