Skip to content

chore(codecov): Ignore errors during codecov upload#846

Merged
MaxymVlasov merged 3 commits intomasterfrom
fix/disable_codecov_error
Mar 21, 2025
Merged

chore(codecov): Ignore errors during codecov upload#846
MaxymVlasov merged 3 commits intomasterfrom
fix/disable_codecov_error

Conversation

@MaxymVlasov
Copy link
Copy Markdown
Collaborator

@MaxymVlasov MaxymVlasov commented Mar 21, 2025

Workaround for codecov/codecov-action#1794

Close #843

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 21, 2025

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Enhanced the CI pipeline by adjusting how test result reporting errors are handled. The process now continues even if the test result upload encounters an issue, ensuring that subsequent steps run smoothly.

Walkthrough

The pull request modifies the GitHub Actions workflow by updating the "Upload test results to Codecov" step. A new line, continue-on-error: true, is added along with two comment lines referencing a known bug and its related GitHub issue. This update allows the workflow to proceed with subsequent steps even if the Codecov upload step fails.

Changes

File Path Summary
.github/workflows/reusable-tox.yml Added continue-on-error: true and two comment lines to allow the workflow to continue even if the Codecov step fails.

Sequence Diagram(s)

sequenceDiagram
    participant Runner as Workflow Runner
    participant Codecov as Codecov Upload Step
    participant Next as Subsequent Steps

    Runner->>Codecov: Execute Codecov upload step
    Note right of Codecov: Known bug may cause failure
    Codecov-->>Runner: Return error (ignored due to continue-on-error)
    Runner->>Next: Proceed with subsequent steps
Loading

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between c949dd2 and a89c2c5.

📒 Files selected for processing (1)
  • .github/workflows/reusable-tox.yml (1 hunks)

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@MaxymVlasov MaxymVlasov marked this pull request as ready for review March 21, 2025 16:51
antonbabenko
antonbabenko previously approved these changes Mar 21, 2025
Comment thread .github/workflows/reusable-tox.yml Outdated
Comment on lines +403 to +405
# There is a bug in action which provokes it to fail during upload
# Related issue: https://github.com/codecov/codecov-action/issues/1794
continue-on-error: true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO it may make sense to add FIXME remark and current date to the comment to keep track of this quirk which we probably want to revert later 🤔

Suggested change
# There is a bug in action which provokes it to fail during upload
# Related issue: https://github.com/codecov/codecov-action/issues/1794
continue-on-error: true
# There is a bug in action which provokes it to fail during upload
# Related issue: https://github.com/codecov/codecov-action/issues/1794
# FIXME: set to `false' once linked issue is resolved (20250321)
continue-on-error: true

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can get date from git metadata

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And browse git log to get when the comment first appeared if it's updated multiple times... I prefer a more human-friendly inline comment.
Up to you though.

@MaxymVlasov MaxymVlasov merged commit 3b6ca91 into master Mar 21, 2025
40 checks passed
@MaxymVlasov MaxymVlasov deleted the fix/disable_codecov_error branch March 21, 2025 17:58
@antonbabenko
Copy link
Copy Markdown
Owner

This PR is included in version 1.98.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants