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

GithubActions: couldn't load committed at from ENV, trying git.. #633

Closed
David-Trejo opened this issue Nov 1, 2022 · 2 comments
Closed
Assignees
Labels
need-more-info Need additional information to debug/reproduce

Comments

@David-Trejo
Copy link

David-Trejo commented Nov 1, 2022

Describe the bug
I am unable to get code coverage reports published onto CodeClimate. I was able to fix the formatter issue that was ocurring, but now experience this issue of couldn't load committed at from ENV, trying git... I've attached a picture of the logs from GithubActions. Any solutions to be able to get it to work?

I've tried downgrading the library to 2.7.0 with the simplest configuration. It sucesfully passes but doesn't publish the code coverage reports to CodeClimate.

Version of codeclimate-action you're using
v3.2.0

Example links

  1. Configure your job to include the debug: true flag and the ACTIONS_STEP_DEBUG secret to true so I can get additional debugging information.
  2. Include links to the specific Github action run and your config.
    Screen Shot 2022-11-01 at 1 55 36 PM

Configuration:

        uses: paambaati/codeclimate-action@v3.2.0
        env:
          CC_TEST_REPORTER_ID: ${{ github.secret.cc_test_reporter_id }}
        with:
          coverageCommand: make test-titan-ivr-campaigns
          debug: true
          coverageLocations: |
            /home/runner/work/Titan/Titan/applications/react/modern/ivr-campaigns/coverage/lcov.info:lcov

Expected behavior
A clear and concise description of what you expected to happen.
Publish code coverage reports to CodeClimate.

Additional context
Add any other context about the problem here.

@David-Trejo David-Trejo added the bug Something isn't working label Nov 1, 2022
@David-Trejo David-Trejo changed the title couldn't load committed at from ENV, trying git.. GithubActions: couldn't load committed at from ENV, trying git.. Nov 1, 2022
@paambaati paambaati added the need-more-info Need additional information to debug/reproduce label Nov 3, 2022
@paambaati
Copy link
Owner

@David-Trejo Is there a small reproducible example or a link to the full workflow? This seems like the reporter itself is not able to process the coverage output.

If you look at the output, it suggests that while the coverage output was generated, the source file at src/components/List.js was not found. Can you confirm that you're able to publish coverage locally?

@paambaati paambaati removed the bug Something isn't working label Nov 3, 2022
@David-Trejo
Copy link
Author

David-Trejo commented Nov 4, 2022

I ended up resolving the issue with the following solution. After applying, the src/components/List.js has found.

// jest.config.js
module.exports = {
  ...
  coverageReporters: [['lcov', { projectRoot: '../../../../' }]]
  ...
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info Need additional information to debug/reproduce
Projects
None yet
Development

No branches or pull requests

2 participants