Skip to content

SUP-1886-update veracode retry on 504#614

Merged
effany merged 13 commits into
mainfrom
SUP-1886-update-veracode-code
Jun 18, 2026
Merged

SUP-1886-update veracode retry on 504#614
effany merged 13 commits into
mainfrom
SUP-1886-update-veracode-code

Conversation

@effany

@effany effany commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This PR updates Veracode retry handling for 504 Gateway Timeout responses.

When a request to Veracode returns HTTP 504, the connector now retries the request up to 2 times, with a fixed 30-second interval between attempts.

This change improves resiliency against temporary Veracode-side timeouts while keeping retry behavior controlled and predictable.

https://kennasecurity.atlassian.net/jira/software/c/projects/SUP/boards/58?selectedIssue=SUP-1886

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.19%. Comparing base (119038c) to head (adacfba).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #614      +/-   ##
==========================================
+ Coverage   35.56%   38.19%   +2.63%     
==========================================
  Files         128      128              
  Lines        8463     8466       +3     
==========================================
+ Hits         3010     3234     +224     
+ Misses       5453     5232     -221     

☔ View full report in Codecov by Harness.
📢 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.

effany added 2 commits June 15, 2026 13:29
- Add comprehensive unit tests for VeracodeAV::Client
- Add comprehensive unit tests for Veracode::Client
- Test HTTP requests, error handling, and authentication
- Improve patch coverage from 62.50% to meet project standards
- Use webmock for HTTP request stubbing
Comment thread spec/tasks/connectors/veracode/veracode_client_spec.rb Fixed
Comment thread spec/tasks/connectors/veracode/veracode_client_spec.rb Fixed
Comment thread spec/tasks/connectors/veracode/veracode_client_spec.rb Fixed
Comment thread spec/tasks/connectors/veracode/veracode_client_spec.rb Fixed
Comment thread spec/tasks/connectors/veracode/veracode_client_spec.rb Fixed
Comment thread spec/tasks/connectors/veracode/veracode_client_spec.rb Fixed
Comment thread tasks/connectors/veracode/lib/veracode_client.rb Outdated

@ababhis2 ababhis2 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Need some clarity on the work

@effany effany requested a review from ababhis2 June 18, 2026 07:08

@ababhis2 ababhis2 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: more testing but this is looking good now.

Approved

@effany effany merged commit 6c393a1 into main Jun 18, 2026
10 of 11 checks passed
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