Skip to content

Remove jenkinsfile#12

Merged
bkochauri-memphis merged 3 commits intomasterfrom
remove-jenkinsfile
Nov 27, 2025
Merged

Remove jenkinsfile#12
bkochauri-memphis merged 3 commits intomasterfrom
remove-jenkinsfile

Conversation

@bkochauri-memphis
Copy link
Contributor

@bkochauri-memphis bkochauri-memphis commented Nov 27, 2025

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • Test A
  • Test B

Checklist:

  • I have performed a self-review of my code
  • I have made corresponding changes to the knowledge base (if needed)
  • My changes generate no new warnings
  • I have verified that the specification is met and all functionalities are working as expected
  • I resolved conflicts
  • Code is passing compilation

Reviewer Score - 100%

  • Meeting Task Specifications (50%)

    • This includes both UI design and backend functionality.
    • Ensure that the task requirements are fully met and that the implementation aligns with the specifications provided.
  • Attention to Edge Cases (10%)

    • Identify and handle edge cases that may not be immediately obvious.
    • Demonstrate thorough testing and consideration of potential issues.
  • Writing Performant and Efficient Code (10%)

    • Optimize the code for performance and efficiency.
    • Avoid unnecessary computations and strive for optimal resource usage.
  • Addressing Feedback from Previous Code Reviews (10%)

    • Act on feedback provided in previous code reviews.
    • Show improvement and a proactive approach to learning from past reviews.
  • Adherence to Coding Conventions (5%)

    • Follow the established coding standards and guidelines.
    • Maintain consistency in style and structure throughout the codebase.
  • Writing Readable Code (5%)

    • Write code that is easy to read and understand.
    • Use clear and meaningful variable names, and include comments where necessary.
  • Considering Aspects Not Explicitly Mentioned in the Specification (5%)

    • Demonstrate initiative by considering aspects that may not be explicitly mentioned in the task specification.
    • Enhance the implementation by thinking beyond the basic requirements.
  • Completing Pull Request Form (2.5%)

    • Demonstrate initiative by considering aspects that may not be explicitly mentioned in the task specification.
    • Enhance the implementation by thinking beyond the basic requirements.
  • Up to 2 Cycles of Code Review (2.5%)

    • Engage in up to two cycles of code review to refine and improve the code.
    • Incorporate suggestions and resolve any identified issues.

Note

Add a GitHub Actions workflow that triggers a Jenkins production build on pushes to latest affecting pyproject.toml.

  • CI:
    • New Workflow: Add .github/workflows/release.yaml.
      • Triggers on push to latest when pyproject.toml changes.
      • Runs on self-hosted runner; checks out code.
      • Uses curl to trigger Jenkins job with DEPLOYMENT_TYPE=production and validates HTTP 200/201 response.

Written by Cursor Bugbot for commit cd23cf0. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

run: |
curl -X POST https://jenkins.superstream.ai/job/DevOps/job/Superstream/job/SDK/job/superstream-clients-python/buildWithParameters?DEPLOYMENT_TYPE=production \
--user "team@superstream.ai:$JENKINS_TOKEN" \
--header "Content-Type: application/json" No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Bug: Curl won't fail on HTTP errors, masking failures

The curl command is missing the --fail (or -f) flag. Without this flag, curl returns exit code 0 even when the HTTP request receives an error response (4xx or 5xx status codes). This means if Jenkins authentication fails, the job doesn't exist, or any server error occurs, the GitHub Actions workflow step will still report success. This could lead to developers believing a production deployment was triggered when it actually wasn't.

Fix in Cursor Fix in Web

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

"https://jenkins.superstream.ai/job/DevOps/job/Superstream/job/SDK/job/superstream-clients-python/buildWithParameters?DEPLOYMENT_TYPE=production" \
--user "team@superstream.ai:$JENKINS_TOKEN")

if [ $? -ne 0 ] || [ "$HTTP_STATUS" -ne 201 ] && [ "$HTTP_STATUS" -ne 200 ]; then
Copy link

Choose a reason for hiding this comment

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

Bug: Operator precedence causes silent failure on curl errors

The shell conditional has incorrect operator precedence due to && and || being left-associative with equal precedence. The expression [ $? -ne 0 ] || [ "$HTTP_STATUS" -ne 201 ] && [ "$HTTP_STATUS" -ne 200 ] evaluates as ((curl_fail) OR (status != 201)) AND (status != 200) instead of the intended (curl_fail) OR ((status != 201) AND (status != 200)). This means if curl fails but HTTP_STATUS is 200 (possible with partial transfers or connection resets), the failure is silently ignored and the script reports success. Parentheses are needed to group the status checks.

Fix in Cursor Fix in Web

@bkochauri-memphis bkochauri-memphis merged commit a32405c into master Nov 27, 2025
1 check passed
@bkochauri-memphis bkochauri-memphis deleted the remove-jenkinsfile branch November 27, 2025 14:34
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