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

Reduce number of file reads in audit and scan runs #213

Merged

Conversation

OiCMudkips
Copy link
Contributor

  • Refactors CodeSnippetHighlighter to accept an already-read file
    • This reduces the redundant file reads
  • Make audit functionality cache last-read file

Justification for this is mostly in #210. Fixes #210.

@OiCMudkips OiCMudkips self-assigned this Jul 30, 2019
@OiCMudkips OiCMudkips force-pushed the stop_reading_files_multiple_times_in_scan branch from 37c5f0e to 26755d3 Compare July 31, 2019 00:07
@OiCMudkips OiCMudkips changed the title Reduce number of file reads in audit and scan runs WIP: Reduce number of file reads in audit and scan runs Jul 31, 2019
Victor Zhou added 2 commits August 1, 2019 15:58
This reduces the flakiness of the code coverage check. In particular,
this code was covered in py37 but not previous versions. Also, this
just makes it easier to pass the coverage test.
@OiCMudkips OiCMudkips force-pushed the stop_reading_files_multiple_times_in_scan branch from 26755d3 to 9e97624 Compare August 1, 2019 23:03
@OiCMudkips OiCMudkips changed the title WIP: Reduce number of file reads in audit and scan runs Reduce number of file reads in audit and scan runs Aug 1, 2019
Copy link
Collaborator

@KevinHock KevinHock left a comment

Choose a reason for hiding this comment

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

🚢

@OiCMudkips OiCMudkips merged commit 4559b6c into Yelp:master Aug 6, 2019
killuazhu pushed a commit to IBM/detect-secrets that referenced this pull request May 28, 2020
Makes improvements and follows conventions which I learned by working on Yelp#213
killuazhu pushed a commit to IBM/detect-secrets that referenced this pull request May 28, 2020
* Function to capture other factors for Box credentials

Supports git-defenders/detect-secrets-discuss#205

* Client id regexes

* publickeyid regexes

* Implemented functionality, just need test cases

* First get_other_factors test

* get_other_factors tests, get build to pass

* Tests for get_box_user

* Test verify

* UNVERIFIED case

* Unnecessary install

* Attempt to fix build issue

* Don't exit loop unless done iterating or verified_true

* More comments addressed

* Address more comments

* UNVERIFIED

* find_other_factor
killuazhu pushed a commit to IBM/detect-secrets that referenced this pull request Jul 9, 2020
Makes improvements and follows conventions which I learned by working on Yelp#213
killuazhu pushed a commit to IBM/detect-secrets that referenced this pull request Jul 9, 2020
* Function to capture other factors for Box credentials

Supports git-defenders/detect-secrets-discuss#205

* Client id regexes

* publickeyid regexes

* Implemented functionality, just need test cases

* First get_other_factors test

* get_other_factors tests, get build to pass

* Tests for get_box_user

* Test verify

* UNVERIFIED case

* Unnecessary install

* Attempt to fix build issue

* Don't exit loop unless done iterating or verified_true

* More comments addressed

* Address more comments

* UNVERIFIED

* find_other_factor
killuazhu pushed a commit to IBM/detect-secrets that referenced this pull request Sep 17, 2020
Supports git-defenders/detect-secrets-discuss#205
Box Verification (Yelp#213)
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.

Improvement: Cache last-opened files
3 participants