这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@sakridge
Copy link
Contributor

@sakridge sakridge commented Mar 2, 2019

Problem

Missing path cleanup in account_not_found test and no cleanup of created parent dir when default paths are created by Accounts object.

Summary of Changes

Add back remove of parent in Accounts::drop, but
remove that in the cleanup_paths helper
for the account tests which do not use
make_default_dir.

Fixes #

@sakridge sakridge requested review from rob-solana and sambley March 2, 2019 22:25
@sakridge sakridge force-pushed the fix-cleanup-paths branch from 2af5e42 to 574e0eb Compare March 2, 2019 23:40
@codecov
Copy link

codecov bot commented Mar 2, 2019

Codecov Report

Merging #3062 into master will decrease coverage by 3.8%.
The diff coverage is 84.8%.

@@           Coverage Diff            @@
##           master   #3062     +/-   ##
========================================
- Coverage    77.8%   73.9%   -3.9%     
========================================
  Files         135     133      -2     
  Lines       20287   21370   +1083     
========================================
+ Hits        15784   15802     +18     
- Misses       4503    5568   +1065

@codecov
Copy link

codecov bot commented Mar 2, 2019

Codecov Report

Merging #3062 into master will decrease coverage by 2.1%.
The diff coverage is 84.8%.

@@           Coverage Diff            @@
##           master   #3062     +/-   ##
========================================
- Coverage    77.8%   75.6%   -2.2%     
========================================
  Files         135     135             
  Lines       20287   20842    +555     
========================================
- Hits        15785   15762     -23     
- Misses       4502    5080    +578

Add back remove of parent in Accounts::drop, but
remove that in the cleanup_paths helper
for the account tests which do not use
make_default_dir.
@sakridge sakridge force-pushed the fix-cleanup-paths branch from 574e0eb to 00cef6b Compare March 3, 2019 01:08
@sakridge sakridge merged commit e1a1296 into solana-labs:master Mar 3, 2019
@sakridge sakridge deleted the fix-cleanup-paths branch March 3, 2019 04:25
let paths = if in_paths.is_none() {
Self::make_default_paths()
let (paths, own_paths) = if in_paths.is_none() {
(Self::make_default_paths(), true)
Copy link
Contributor

@rob-solana rob-solana Mar 3, 2019

Choose a reason for hiding this comment

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

which code passes None for in_paths, now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Basically all the tests which create banks, in_paths is really only populated when the --accounts argument is passed to fullnode from the command line.

willhickey added a commit that referenced this pull request Oct 4, 2024
…3052) (#3062)

* ci: ignore the tonic audit as a temporary stopgap (#3052)

(cherry picked from commit 9b5525d)

# Conflicts:
#	ci/do-audit.sh

* Fix conflicts

* Update to mimic v2.0 change

---------

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
Co-authored-by: WillHickey <will.hickey@anza.xyz>
behzadnouri pushed a commit to behzadnouri/solana that referenced this pull request Oct 10, 2024
…olana-labs#3052) (solana-labs#3062)

* ci: ignore the tonic audit as a temporary stopgap (solana-labs#3052)

(cherry picked from commit 9b5525d)

# Conflicts:
#	ci/do-audit.sh

* Fix conflicts

* Update to mimic v2.0 change

---------

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
Co-authored-by: WillHickey <will.hickey@anza.xyz>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants