canonical / discourse-gatekeeper

Experimental GitHub Action to upload charm documentation to charmhub
Apache License 2.0
7 stars 7 forks source link

Page conflicts #173

Closed jdkandersson closed 1 year ago

jdkandersson commented 1 year ago

Changes the community contribution conflict detection to be based on page level conflicts rather than using git.

jdkandersson commented 1 year ago

Looks like the chaos testing is not working at the moment. Once that is resolved, the python:3.11-slim image was updated to debian bookworm a few hours ago which is resulting in the step installing git to fail since the version is pinned to 1:2.30 which is not available on bookworm. This means that the upload-charm-docs step in our CI can't pass in this PR and this PR will need to be merged with an override once the rest of the CI passes

github-actions[bot] commented 1 year ago

Test coverage for 6df4238d2dc0495cc9b66343e4ff950e127f90dd

Name                      Stmts   Miss Branch BrPart  Cover   Missing
---------------------------------------------------------------------
src/__init__.py              60      0     20      0   100%
src/action.py               154      0     46      0   100%
src/check.py                 52      0     21      0   100%
src/clients.py               12      0      0      0   100%
src/constants.py              7      0      0      0   100%
src/content.py               50      0     10      0   100%
src/discourse.py            156      0     34      0   100%
src/docs_directory.py        33      0      8      0   100%
src/download.py              23      0      2      0   100%
src/exceptions.py            14      0      0      0   100%
src/index.py                 28      0      6      0   100%
src/metadata.py              28      0     12      0   100%
src/migration.py             87      0     27      0   100%
src/navigation_table.py      63      0     20      0   100%
src/reconcile.py             85      0     40      0   100%
src/repository.py           238      0     76      0   100%
src/types_.py               125      0     22      0   100%
---------------------------------------------------------------------
TOTAL                      1215      0    344      0   100%

Static code analysis report

Run started:2023-06-15 13:21:45.783216

Test results:
    No issues identified.

Code scanned:
    Total lines of code: 11005
    Total lines skipped (#nosec): 14
    Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
    Total issues (by severity):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
    Total issues (by confidence):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
Files skipped (0):