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

Fix issue with SonarCloud coverage on build pipeline #291

Closed
danstis opened this issue Oct 5, 2024 · 0 comments · Fixed by #293
Closed

Fix issue with SonarCloud coverage on build pipeline #291

danstis opened this issue Oct 5, 2024 · 0 comments · Fixed by #293
Assignees
Labels
bug Something isn't working github_actions Pull requests that update GitHub Actions code

Comments

@danstis
Copy link
Owner

danstis commented Oct 5, 2024

The following error is raised with each PR on SonarCloud:
Image

@danstis danstis added bug Something isn't working github_actions Pull requests that update GitHub Actions code labels Oct 5, 2024
@danstis danstis self-assigned this Oct 5, 2024
danstis added a commit that referenced this issue Oct 5, 2024
### **User description**
Fixes #291


___

### **PR Type**
configuration changes


___

### **Description**
- Added `relative_files = True` to the `[coverage:run]` section in `tox.ini` to fix the issue with SonarCloud coverage reporting.
- This change ensures that coverage paths are reported relative to the source, which is necessary for correct integration with SonarCloud.


___



### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Configuration changes</strong></td><td><table>
<tr>
  <td>
    <details>
      <summary><strong>tox.ini</strong><dd><code>Update coverage configuration to use relative file paths</code>&nbsp; </dd></summary>
<hr>

tox.ini

<li>Added <code>relative_files = True</code> under <code>[coverage:run]</code> section.<br> <li> This change affects how coverage paths are reported.<br>


</details>


  </td>
  <td><a href="https://github.com/danstis/ado-asana-sync/pull/293/files#diff-ef2cef9f88b4fe09ca3082140e67f5ad34fb65fb6e228f119d3812261ae51449">+1/-0</a>&nbsp; &nbsp; &nbsp; </td>

</tr>                    
</table></td></tr></tr></tbody></table>

___

> 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant