Skip to content

Fix for test results not displaying in checks tab#1728

Merged
esimkowitz merged 4 commits intowavetermdev:mainfrom
testdriverai:main
Jan 15, 2025
Merged

Fix for test results not displaying in checks tab#1728
esimkowitz merged 4 commits intowavetermdev:mainfrom
testdriverai:main

Conversation

@chottuthejimmy
Copy link
Contributor

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 14, 2025

Warning

Rate limit exceeded

@chottuthejimmy has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 31 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 8190a3e and f66b08b.

📒 Files selected for processing (1)
  • .github/workflows/testdriver.yml (3 hunks)

Walkthrough

The pull request introduces modifications to the GitHub Actions workflow file .github/workflows/testdriver.yml. The changes primarily focus on enhancing the workflow's execution and tracking capabilities. A new permission for actions with read access has been added to the workflow's permission settings.

The run_testdriver job now includes a conditional execution clause that ensures the job only runs if the previous workflow run concludes successfully. A new step utilizing the actions/github-script@v7 action has been implemented to create a check run, which initializes the run status as 'in_progress'. This step dynamically captures the repository and owner information from the GitHub context and uses the head_sha from the triggering workflow run.

These modifications aim to improve workflow control and provide more detailed tracking of the test driver execution process.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a44a1a4 and 8190a3e.

📒 Files selected for processing (1)
  • .github/workflows/testdriver.yml (2 hunks)
🔇 Additional comments (2)
.github/workflows/testdriver.yml (2)

14-17: LGTM! Permissions are correctly configured.

The added actions: read permission is necessary for accessing workflow run information, and the permission level is appropriately set to read-only.


50-50: LGTM! Good practice to gate test execution.

The condition ensures that tests only run after a successful build, preventing unnecessary test runs on failed builds.

@chottuthejimmy
Copy link
Contributor Author

Hey @esimkowitz So github workflow_run triggers run in a separate pipeline that only knows the “completed” event from another workflow’s outcome; it doesn’t automatically attach itself to the original commit or PR.
That's the reason the TestDriver.ai Run wasn't being displayed.
There are a couple of ways to fix this.

  • can call GitHub’s checks REST API (via actions/github-script or any other method) to create/update a check run that references the commit associated with the pull request. It effectively “attaches” the workflow_run job to the PR’s commit checks.
  • or can merge the build and run into a single workflow.

in this PR I have tried to implement the former, unfortunately I was unable to test it on my fork branch.
But it should work.

@chottuthejimmy
Copy link
Contributor Author

@esimkowitz
Copy link
Contributor

I think those are all my comments, yeah I think the best long-term approach is to ditch the actions altogether. You can set up a server that listens to webhook events and updates the PR checks directly via the GitHub API using a GitHub App Token. I believe this is how CodeRabbit does their automated checks and we found it super painless to set up. We can check a file into our repo root that contains the TestDriver prompts and configs so you can pick it up in your system. Obviously not a short-term remedy, but food for thought as your product matures.

@chottuthejimmy
Copy link
Contributor Author

Got it.
I totally get what you are saying, really appreciate for all the inputs with nice explanation, I personally learning a ton.

That said, I think its gonna take a while for us to build that, given the fact that we are literally a two person team and got like a million other things, we are working super hard atm.
Building an org is hard and we are experiencing those "hard" part.

So, if you could merge this for now and basically have a way to check it, would be great!

Hope you understand Evan :)

@esimkowitz esimkowitz merged commit a05cd2e into wavetermdev:main Jan 15, 2025
5 checks passed
@esimkowitz
Copy link
Contributor

Of course! Yeah just some musings I had while I was waiting on the ski lift 🤣

@chottuthejimmy
Copy link
Contributor Author

I think there's a bug in my code.
Failed Action
There's an error ReferenceError: steps is not defined

xxyy2024 pushed a commit to xxyy2024/waveterm_aipy that referenced this pull request Jun 24, 2025
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.

2 participants