-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rollout-controller): Implementing action taking and refactoring …
…tests (#249) * transformed cli to be a lib aswell * added deps to rollout controller * started work on action taking * finishing action taking * adding checking of blessed version * reducing test verbosity * moving feat build tests in the same module * add a partially executed step test * renaming * renaming * remove macro calls * adding better calculation of start of release
- Loading branch information
1 parent
bf0b89a
commit 6e6a377
Showing
17 changed files
with
709 additions
and
1,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pub mod cli; | ||
pub mod clients; | ||
pub(crate) mod defaults; | ||
pub mod detect_neuron; | ||
pub mod general; | ||
pub mod ic_admin; | ||
pub mod operations; | ||
pub mod ops_subnet_node_replace; | ||
pub mod registry_dump; | ||
pub mod runner; | ||
|
||
/// Get a localhost socket address with random, unused port. | ||
pub fn local_unused_port() -> u16 { | ||
let addr: std::net::SocketAddr = "127.0.0.1:0".parse().unwrap(); | ||
let socket = socket2::Socket::new( | ||
socket2::Domain::IPV4, | ||
socket2::Type::STREAM, | ||
Some(socket2::Protocol::TCP), | ||
) | ||
.unwrap(); | ||
socket.bind(&addr.into()).unwrap(); | ||
socket.set_reuse_address(true).unwrap(); | ||
let tcp = std::net::TcpListener::from(socket); | ||
tcp.local_addr().unwrap().port() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.