Skip to content

Conversation

@jmthomas
Copy link
Member

  • Fix Python syntax check to use exit status code in addition to output when determining if py_compile failed. Some environments don't produce output on syntax errors but do return non-zero exit status.

  • Add Content-Type: text/plain header to Python script_syntax_check and script_instrumented API requests. Without this header, Rails was not reading the request body correctly, causing empty text to be passed.

  • Show only the error message for CheckError exceptions instead of full stack trace, matching Ruby behavior.

- Fix Python syntax check to use exit status code in addition to output
  when determining if py_compile failed. Some environments don't produce
  output on syntax errors but do return non-zero exit status.

- Add Content-Type: text/plain header to Python script_syntax_check and
  script_instrumented API requests. Without this header, Rails was not
  reading the request body correctly, causing empty text to be passed.

- Show only the error message for CheckError exceptions instead of full
  stack trace, matching Ruby behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.22%. Comparing base (8112540) to head (bed231a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2737      +/-   ##
==========================================
- Coverage   79.22%   79.22%   -0.01%     
==========================================
  Files         670      670              
  Lines       54178    54182       +4     
  Branches      734      734              
==========================================
+ Hits        42924    42927       +3     
- Misses      11174    11175       +1     
  Partials       80       80              
Flag Coverage Δ
python 80.98% <ø> (-0.01%) ⬇️
ruby-api 84.20% <100.00%> (+0.05%) ⬆️
ruby-backend 82.22% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jmthomas jmthomas merged commit 9ca5271 into main Jan 16, 2026
26 of 28 checks passed
@jmthomas jmthomas deleted the pyscript branch January 16, 2026 15:52
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