Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embedmissedlines.ps1 parameter 'Path' is null #66

Open
ralfstuckert opened this issue Mar 29, 2024 · 6 comments
Open

embedmissedlines.ps1 parameter 'Path' is null #66

ralfstuckert opened this issue Mar 29, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ralfstuckert
Copy link

ralfstuckert commented Mar 29, 2024

Describe the bug
I get the following error using your action in the (public) repo https://github.com/ralfstuckert/openpdf-markdown

Run PavanMudigonda/[email protected]
  with:
    coverage_results_path: build/reports/jacoco/test/jacocoTestReport.xml
    coverage_report_name: Coverage
    coverage_report_title: JaCoCo
    github_token: ***
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Microsoft_jdk/17.0.10/x6[4](https://github.com/ralfstuckert/openpdf-markdown/actions/runs/8478275832/job/23230361537#step:7:4)
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Microsoft_jdk/17.0.10/x64
    GRADLE_BUILD_ACTION_SETUP_COMPLETED: true
    GRADLE_BUILD_ACTION_CACHE_RESTORED: true
/usr/bin/pwsh -f /home/runner/work/_actions/PavanMudigonda/jacoco-reporter/v[5](https://github.com/ralfstuckert/openpdf-markdown/actions/runs/8478275832/job/23230361537#step:7:5).0/action.ps1
Module [GitHubActions] not found, INSTALLING...
Running from [/home/runner/work/_actions/PavanMudigonda/jacoco-reporter/v5.0]

Creating test results space

/home/runner/work/openpdf-markdown/openpdf-markdown/_TMP

Publishing Report to GH Workflow

Building human-readable code-coverage report

VERBOSE: Resolving XML file relative to current directory: /home/runner/work/openpdf-markdown/openpdf-markdown/build/reports/jacoco/test/jacocoTestReport.xml
VERBOSE: Resolving default XSL file: /home/runner/work/_actions/PavanMudigonda/jacoco-reporter/v5.0/jacoco-report/jacocoxml2md.xsl
VERBOSE: Loaded XSL transformer
VERBOSE: Transforming XML to MD
embedmissedlines.ps1: /home/runner/work/_actions/PavanMudigonda/jacoco-reporter/v5.0/action.ps1:67
Line |
  67 |          & "$PSScriptRoot/jacoco-report/embedmissedlines.ps1" -mdFile  …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
Error: The process '/usr/bin/pwsh' failed with exit code 1

I have debugged the run, the file _TMP/coverage-results.md passed as the parameter actually exists... I don't get it :-/

To Reproduce
Since my repo https://github.com/ralfstuckert/openpdf-markdown is public you may clone it, in order to reproduce it. As mentioned, the debug action is included in order to inspect the run.

@PavanMudigondaTR PavanMudigondaTR added the bug Something isn't working label Mar 31, 2024
@PavanMudigondaTR PavanMudigondaTR self-assigned this Mar 31, 2024
@PavanMudigondaTR
Copy link
Collaborator

@ralfstuckert thanks for reporting the bug and providing your repo. i am able to replicate. i will try to fix it in couple of days.

@mkoch1
Copy link

mkoch1 commented Apr 29, 2024

Hi, seeing the same exact issue in my project. Any progress?

@PavanMudigondaTR
Copy link
Collaborator

Hi, seeing the same exact issue in my project. Any progress?

I am able to replicate the issue. now attempting to fix it !

@PavlosTze
Copy link

I'm having the same issue as well.

@aaccioly
Copy link

aaccioly commented Jul 7, 2024

Same problem here. Apparently it works fine with push events but fails for pull_request events.

@ascheman
Copy link

ascheman commented Aug 9, 2024

I do have the problem as well. I am currently trying to modularize my build, i.e., building in one job, then upload/download artifacts including JaCoCo reports. With unmodularized builds every was fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

6 participants