-
Notifications
You must be signed in to change notification settings - Fork 649
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
Output only to stdout in github actions #7135
Output only to stdout in github actions #7135
Conversation
cli/tests/e2e/snapshots/test_ci/test_full_run/noautofix-github-push/results.txt
Outdated
Show resolved
Hide resolved
😭 This is interfering with how the benchmarks ingest results |
Could you link me to error logs or a line of code? Do benchmarks parse timing out of semgrep's text formatter output? If yes, can we switch it to use JSON output? |
Oh we're also failing a bunch of the QA tests https://github.com/returntocorp/semgrep/actions/runs/4166516368/jobs/7211137547 Here's the benchmark run: https://github.com/returntocorp/semgrep/actions/runs/4166516368/jobs/7211136971 |
No, but they are now stumped by the results header
|
…t-and-stderr-are-mixed-together-in
I guess it's a bit problematic to change this behavior whenever we are in GHA, since we run all of our tests in GHA. It seems like this will make all the snapshot tests behave differently when run locally vs when run in CI. This seems problematic, and I'm not sure how best to address it. |
Our tests are already immune from this issue and have isolated env vars 👍 |
Cool, I will let @emjin finish the review then. Thanks for addressing this so quickly! |
Benchmarks work! Unfortunately there are other tests failing. It looks like |
Oof. The issue is that semgrep-core has a Python preexec function which uses the same logger as the CLI. This just happened to work before due to luck, but is conceptually wrong as there are very different rules of communication between core -> cli, than there are between cli -> user :D |
Maybe we just have the offset output for launch, and we merge this after? This is seeming like a larger change since we're fixing how semgrep-core communicates, and I don't think the output being off is a blocker for launch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We went through a bunch of edge cases and think it looks good!
PR checklist:
If you're unsure on any of this, please see: