diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70030ee32ac..785475de5cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,11 +68,19 @@ jobs: id: build env: VERSION: ${{ env.version }} + - name: Prepare report.xml for Codecov + run: | + # this is needed because codecov incorrectly reports lines that have no coverage information (good or bad) as a miss + # See https://github.com/codecov/feedback/issues/564 and https://github.com/Kotlin/kotlinx-kover/issues/699. + # Actually these lines should just not exist in the coverage XML file, since they are only structural elements, such + # as brackets. + cat cpg-all/build/reports/kover/report.xml | grep -v 'mi="0" ci="0" mb="0" cb="0"' > cpg-all/build/reports/kover/report-codecov.xml + rm cpg-all/build/reports/kover/report.xml - name: Upload Code Coverage uses: codecov/codecov-action@v5 with: fail_ci_if_error: true - files: ./cpg-all/build/reports/kover/report.xml + files: ./cpg-all/build/reports/kover/report-codecov.xml token: ${{ secrets.CODECOV_TOKEN }} verbose: true - name: Prepare test and coverage reports diff --git a/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg_vis_neo4j/Application.kt b/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg_vis_neo4j/Application.kt index 8afdd6dbdd9..1ae5207abd1 100644 --- a/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg_vis_neo4j/Application.kt +++ b/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg_vis_neo4j/Application.kt @@ -520,8 +520,8 @@ class Application : Callable { if (!noDefaultPasses) { translationConfiguration.defaultPasses() - // translationConfiguration.registerPass() - // translationConfiguration.registerPass() + translationConfiguration.registerPass() + translationConfiguration.registerPass() } if (customPasses != "DEFAULT") { val pieces = customPasses.split(",")