Commit cbbd79f
Gh v2 580b czarte (#629)
* test for exit location in large patch
* implementing exit_location
* ExitLocation struct and its members to messages.rs, set_exit_location_command to masq, implemented From(String, usize) for CountryCodes
* Gh 784 review four (#521)
* continue of code review changes
* test for panic in handle_retrieve_transactions
* fixing more comments from review
* removing TODO
* implementing review, added two new tests for ip_country
* removing unnecesary country_code from node_descriptor
* added cfg(test) and cfg(not(test)) for static ref COUNTRY_CODE_FINDER, created test_dbip_country.rs
* change country_code member of NodeRecordInner_0v1 to country_code_opt
* simplifying tests in node_record.rs and neighborhood_database.rs
* resolving review comments
* final changes in gossip_acceptor from review
* continue of implementing review comments
* fix test return value
* added ip_country to ci/all.sh
* cherry-pick from GH-784-fix-for-Vojta and implementing iterator for deserializer
* try to create test for fmt
* tests for print ip v4 and v6 vec[u8] in country_block_serde.rs
* ci for ip_country + resolved conflicts of clippy
* masq_lib dependencies solved
* dependency masq_lib for ip_country in node workspace
* remove commented out code + fix condition for non empty bit_queue
* formatting
* 5 seconds for wait_for_log in requested_chain_meets_different_db_chain_and_panics_integration
* fixing impl for AGR in multinode tests
* formatting
* fix nonexistent NodeAddr in multinode tests for AGR
* change single match to if
* try to fix build in actions for MacOS
* try to find out disk space on MacOS container in Actions
* add diagnostics commands on failure
* check diskspace before ci/all.sh workflow runs
* diagnose mounted disks
* analyze /var/ diskspace
* remove advanced diagnosticst for disk space
* switch macos to version 13
* diagnostics for /Users/runner/work/Node/Node/node/target/release
* fasten diagnostics
* fasten diagnostics fix
* fasten diagnostics back
* GH-784-review-two-state: fixes that could work on Actions, appeasing it
* fixing review
* implementing CountryBlock count in generated rs file, and infrastructure
* fixing ip_country tests
* fix import of ip_country to multinode_integration_tests
* formatting
* fix the reference for COUNTRY_CODE_FINDER
* implemenitng initalization checker for COUNTRY_CODE_FINDER
* CountryCodeFinder initializer
* fixed comments from review
* removed custom PartialEq for NodeLocation
* get back with COUNTRY_CODE_FINDER
---------
Co-authored-by: Bert <[email protected]>
* implemented country-codes and fallback-routing into MessageBody for Node from the UI
* completed test for c
ommand for exit location, add test for neighborhood actor to test recieved message
* implemented handler for exit_location_opt, rename exit_loctation to exit_location_opt, cleanup persistent configuration, test finished for set_exit_location message handler
* fmt for HashSet<ExitLocation>, finished the assertions in test exit_location_can_be_changed_using_exit_location_msg
* cleanup, test for fallback-routing: false, logger for fallback-routing and implementation for handle from message in Neighborhood
* change exit_locations_opt from HashSet to HashMap
* clearing bootstrapper config
* country_undesidability to NodeRecordMetadata
* added member for NodeRecordMetadata and processing for country_undesirability in message handler for exit location
* added assertion message for assert on db change in actor
* refacotring neighborhood_test_utils: extracted make_segmented_ip, and make_segments for usage in tests, add comments to assertions in handle_exit_location test, test for nodes_mut
* added unset exit_location logic with test
* change name of test
* fiixing tests for set_exit_location_command, fixing log assertion for exit_location handler in Neighborhood
* added assertion on neighborhood to exit_location tests
* pull request branch changed to GH-784
* formatting
* fixing comments from review
* polishing helps
* addressing comments from review
* polishing helps for exit-location
* add use super::*; to tests use
* add cfg(test) for tests in set_exit_location_command
* fixing clippy complains
* fix multinode neighborhood constructor
* rename set_exit_location_command.rs to exit_location_command.rs
* add protection for empty Neighborhood DB
* change protection for empty Neighborhood
* fixed shared schema, added exit location to --help of masq
* set version for sccache
* add lifetime for daemon_shared_app fn return
* fixing log assertion in tests, add db to exit location test, fix app lifetime for daemon help
* introduce test utilities
* remove unused import - localhost linux compile and passes all ip_country tests
* addressing comments from review
* addressing comments from review, refactoring Neighborhood for exit-location, introduce enum for ExitPreference, fixed Display for ExitLocationSet
* fix tests for separate_u64_values
* add Eq to ExitPreference
* rearranged test_utilities, fix to exit_location_handler and its tests
* fixing ByteArrayWriter and Reader for masq
* added more nodes to exit_location test with fallback to test UNREACHABLE_COUNTRY_PENALTY
* move test_utilities to dev-dependencies
* test_utilities from dev to production dependencies in masq_lib
* formatting help
* formatting help
* review 3 - refactoring message handler for exit location, and few minor changes
* country codes for NodeRecords in tests Neighborhood DBs, constants for assertion and better error messages, other minor changes
* formatting
* fix todo comment, and formatting
* exit-loaction data structures moved into the ExitTools, cloned into NeighborhoodMetadata and sent to handler, modified test for gossip handler to ensure new node has modified undesirability
* implemented adding country_undesirability for introducer and debutant
* formatting and remove unnecesary let
* fallback routing assertion change
* formatting
* rename ExitTools
* fix request for neverssl.com to impersonate user-agent
* changes in test for country_code_route, remove country_code_opt from routing engine, replaced by UserExitPreferences, implemented filtr for country_code in routing
* working exit country selection wihtout fallback, introduces new structure db_countries and find_exit_location fn from GH-469
* start of implementing find_exit_location
* changes to create db_countries
* completed process for db_countries and routign_engine for fallback_routing
* handling missing locations in NeighborhoodDB
* introduced Error responose for ExitLocation handler, adjusted tests, investigate find_exit_location function and routng_engine
* modified routing engine to harvest more exit nodes from Neihgborhood DB
* implemented recursion for research neighborhood, adjusted tests, missing_countries moved to extract_exit_locations_from_message
* fix research_neighborhood in routing_engine, new recursion call for research_neighborhood, recursion guts moved to outbound function
* formatting and compiler complains resolved
* test for db_countries setting on handle gossip
* completed test for newly introduced exit node, added assertions, works
* test for removing exit location of last node with particular country code from db_countries, TODO created
* formatting
* removing comments, introducing TODOs
* unit test for init_db_countries(), removed duplicit test for handle gossip
* added --show-countries for exit-location subcommand for testing purposes
* first cherry pick from amoy commit b2a3ebf
* added amoy network
* formatting
* amoy fixing
* fixing routing engine for direction back in route, and fallback-routing condition
* create prefix with capacity
* back to previous version of routing_engine
* fix dotgraph
* allow dead code for unused service functions for new multinode integration test of exit_location
* fix tilde for windows - cherry pick from master
* formatting
* remove unused imports
* fix tilde in config-file path from master
* replace neverssl.com for testingmcafeesites.com in multiple_streans_zero_hop
* formatting
* remove slash from url in test to pass
* multinode test with processing functions
* remove unused imports and questionmark
* connect last node to germany network
* interconnect_world_network public
* remove networks before creation
* add creation of integration_net to test
* remove world network from last node
* fix first node
* network into docker run
* add clone, debug, partialeq to NetworkPack
* fix arguments count to do_docker_run
* fix do_prepared_docker_run
* solving temporary issue
* solving dereference
* solving free while use issue
* resolve lifetime issues
* resolve lifetime issues do_docker_run
* remove network connect duplication
* fix ip start index for nodes in loop
* fix ip start index for nodes in loop cz
* fix ip start in loop
* fix ip start in loop de
* multinode integration test with multiple real networks, selecting exit-location country, and retrieving web result
* country_code_exit_location_routing - final stage with multiple networks
* multinode test http_end_to_end_routing_test_with_exit_locationL
* rebuilding exit-location command response
* introduced UiSetExitLocationResponse and processing it in masq CLI, fixed exit-location handler and messages
* multinode test and refactoring masq command request and response
* resolving self-review: updated copyright to right year, removing obsolete TODOs, added test for constants, corrected output to stdout in exit_location_command
* added assertions Response and udated Response processing exit-location-command tests
* remove unnecessary Docker components for exit_location test, fixing self review commnets, new TODO in neighborhood/mod.rs
* resolved handle_new_public_ip test, and half way to resolve handle_gossip test and update db_countries on DB change
* test for init_db_countries in handle_agrs, condition for one-hop in handle_agrs Reply, remove target_country_opt
* formatting
* fix exit-location cmd assertion
* multinode test from master
* make_node_record do not add country if show_ip is false
* ok_responose partialy from master for MockBlockchainClientServer
* resolved last comments
* remove data from dbip_country.rs - prepared for actions build
* working on exit_location_command
* addressing issues from review
* continue addressing review comments
* Added DBIP file generation
* ci: improve GitHub Actions workflow - Replace s3-sync-action with AWS CLI, update credentials handling, improve cache invalidation
* refactor: improve path resolution and code quality in generate_dbip
* ci: remove unnecessary dependencies and update generate dbip step
* chore: remove unused generate_dbip_country.sh script
* docs: update download script message to reference cargo command
* refactor: Improve generate_dbip.rs organization and efficiency
* fix: Update dbip_country.rs paths in CI workflow to use temp directory
* fix: Update verification pattern for generated dbip file
* ci: revert platform changes to legacy
* ci: update windows specific file move to use bash
* ci: corrected verification step
* more addressed comments from review
* test for min_hops_change affects exit_countries and enrich_exit_countries in extract_exit_locations_from_message to be implemented in handle_config_change_msg
* new machinery for min-hop affects exit location settings
* handle_config_change_msg debugging
* finalize min_hops_change_affects_db_countries test
* rename test
* refactoring neighborhood/mod.rs, moving AccessibleGossipRecord to gossip.rs, formatting
* Room for an MMDB parser
* Generating countries, rudimentary
* parse() should produce a Countries object, instead of Vec<(String, String)>. Gonna do that.
* fix db to dot grap test
* Interim commit
* addressing more comments from review
* addressing minor changes from review
* addressing review comments
* resolving comments from review
* Must make tests self-adapting
* No MMDB yet, but tests pass
* addressing comments from review
* UI README updated (uncompleted), comment explaining country_undesirability in Metadata, addressing gomments from review
* About to try bringing in an actual DBIP file
* Happy-path test passing
* formatting for ExitLovationSet
* setup_reporter_shared_app and wait_for_masq_node_ends
* CountryCodes to CountryBlocks, fix formatting of ExitLocationSet in tests, remove reference from supporting functions, already reference comming in
* resolving unimplemented Copy trait in Process
* new clap test providing_show_countries_with_other_argument_fails
* format
* MMDB parser seems to be finished
* fallback routing test change
* country codes to nodes names in tests
* description to exit-location response
* removing comments, adding country codes to node names in tests
* Now MMDB parser isn't as wasteful
* Removed dead data
* Tests all pass
* Merge mostly complete; lots of tests pass. Maybe all of them?
* One test failing. Can't figure why.
* All masq tests passing now
* Multinode tests pass; one bit of code cleanup remains
* All tests should be passing
* Removed dead code
* Little surgery on modules and imls
* Updated the CSV country list from MMDB
* Started GitHub Actions file for monthly downloads
* conditions for failing download and gargo run, to not continue, file names in generate and commit
* Going to try out the dbip_download workflow
* Temporary on:
* addressing review 2 comments
* addressing comments from review2
* fixing line length in user interface interface md
* tests to remove unexistent countries from user_exit_preferences.locations_opt
* remove tests and commnet of filtering out unexistent country_codes
* comment about the locations_opt
* make_node_record_cc and adjusting tests, get rid of free world bit
* fixes country_code on tests, introduced make_node_record_cc
* addressing commnets from review3
* remove pub from CountryCodeFinder member, and remove commented out code
* utilization of strings in clap test for show-countries
* last review with master merged in
* forgotten change
* generate dbip_country.rs workflow and checkout dbip_country.rs from separate branch in ci-matric workflow
* resolved most failing tests, now failing debut_with_node_addr_not_accepting_connections_is_rejected for no reason, wierd behaviour of qualifies
* fixing failing tests
* comment out fetch dbip, and remove unwanted action build dbip
* try to fix actions
* all countries in test dbip_country.rs
* removing misstake
* added checkout of read dbip_country.rs from DBIP-Experiment
* new workflow: in local we work with reduced dbip, but on ci/all.sh we checking out full version from git, same in actions, remove PARENT_DIR variable for Jenkins
* testing git pre-commit hook
* update pre-commit hook
* remove checkout of dbip_country.rs from ci-matrix, it will be handled by ci/all.sh
* testing pre-commit hooks changes
* testing commit hook
* testing pre commit hook
* testing pre commit hook
* final polishing of pre-commit hook
* addressed comments from Review
* formatting
* addressing review comments, plus fix double entry of ip_country in modules.xml
* Enabled IDE tests in ip_country
* Fixed module-definition problem, addressed two review comments
* Weird stuff with TryFrom and From
* addressing review comments
* fix ci.all condition for chekout dbip
* remove comments and exit in ci/all.sh
* generated-source from Node repo
* dbip download workflow for master
* adjust cron shedule for dbip download
* final touch for dbip workflow
* git pull before ci/all.sh
---------
Co-authored-by: Bert <[email protected]>
Co-authored-by: FinsaasGH <[email protected]>
Co-authored-by: FinsaasGH <[email protected]>
Co-authored-by: Dan Wiebe <[email protected]>1 parent 5535b1e commit cbbd79f
File tree
94 files changed
+9319
-714
lines changed- .githooks
- .github/workflows
- .idea
- automap
- ci
- dns_utility
- ip_country
- ci
- data
- src
- masq_lib
- src
- blockchains
- test_utils
- masq
- src
- commands
- notifications
- terminal
- test_utils
- multinode_integration_tests
- ci
- src
- tests
- node
- .idea
- src
- daemon
- neighborhood
- node_configurator
- proxy_server
- sub_lib
- migrations
- test_utils
- tests
- test_utilities
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
94 files changed
+9319
-714
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | | - | |
68 | | - | |
| 76 | + | |
| 77 | + | |
69 | 78 | | |
70 | | - | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
80 | 104 | | |
81 | 105 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
92 | 111 | | |
93 | 112 | | |
94 | 113 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
105 | 119 | | |
106 | 120 | | |
107 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | | - | |
34 | | - | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | | - | |
| 38 | + | |
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
48 | | - | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
593 | 662 | | |
594 | 663 | | |
595 | 664 | | |
| |||
0 commit comments