Skip to content
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

Call static analysis finish endpoint after uploading files #182

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

joseph-sentry
Copy link
Contributor

This commit changes the static-analysis command in the CLI, such that it calls the staticanalysis/analyses/<external_id>/finish endpoint in the API after it uploads the necessary files. This endpoint schedules the static analysis task on the worker immediately.

Fixes: #66

@joseph-sentry joseph-sentry marked this pull request as ready for review June 22, 2023 19:47
This commit changes the static-analysis command in the CLI,
such that it calls the staticanalysis/analyses/<external_id>/finish
endpoint in the API after it uploads the necessary files.
This endpoint schedules the static analysis task on the worker
immediately.

Fixes: #66
Signed-off-by: joseph-sentry <[email protected]>
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #182 (5e57104) into master (1776cc4) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   95.46%   95.53%   +0.06%     
==========================================
  Files          69       69              
  Lines        2427     2441      +14     
==========================================
+ Hits         2317     2332      +15     
+ Misses        110      109       -1     
Flag Coverage Δ
python3.10 95.53% <100.00%> (+0.06%) ⬆️
python3.7 95.53% <100.00%> (+0.06%) ⬆️
python3.8 95.53% <100.00%> (+0.06%) ⬆️
python3.9 95.53% <100.00%> (+0.06%) ⬆️

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

Impacted Files Coverage Δ
codecov_cli/services/staticanalysis/__init__.py 80.35% <100.00%> (+3.82%) ⬆️

This commit also adds the response status code to the log
after sending the finish signal.

Signed-off-by: joseph-sentry <[email protected]>
Copy link
Contributor

@dana-yaish dana-yaish left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

Incorporate "I'm Done, Start Analyzing" Endpoint into CLI Static Analysis
2 participants