-
Notifications
You must be signed in to change notification settings - Fork 519
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
netdog: remove conditional compilation #3700
netdog: remove conditional compilation #3700
Conversation
3797d34
to
142ab64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Please pardon any midair collisions with @sam-berning. I think we reviewed concurrently.
3bce866
to
903e65d
Compare
903e65d
to
d7373d6
Compare
e9ebd6f
to
8d178ac
Compare
Rolled back to handling the binary split in the rpm spec. It is more than sufficient and attempts to split the binary at cargo level fell upon issues with how netdog is structured that were not minimal to address |
Reason for return of using rpmspec: The reason for this was a bunch of roadblock updates i ran into with splitting the binaries out:
As you can see above each approach i took to do the binary split at cargo time was bringing with it a bunch of more work when we had a functional solution. I decided to go back to a functional solution and file a github issue (which i need to do) for us to refactor netdog in the future to handle both this and how the cfgs are too integrated into too many source files |
@@ -142,7 +142,7 @@ impl Display for NetDevMacAddress { | |||
} | |||
|
|||
impl NetDevConfig { | |||
const FILE_EXT: &str = "netdev"; | |||
const FILE_EXT: &'static str = "netdev"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a requirement of upgrated rust sdk. I'm surprised we aren't being riddled with more of these errors, but when the rust update landed as part of 1.18 into develop and i upgraded the PR it started flagging this as an error (previously was a warning) All module global consts need to have a static lifetime if using a type that requires lifetimes such as &str. It is no longer implicit
8d178ac
to
20e59a5
Compare
20e59a5
to
a00c56f
Compare
fix version number and remove accidental file |
a00c56f
to
4d95728
Compare
66e7dc7
to
2d8d69f
Compare
For testing I did the following:
|
999abe3
to
88cb74b
Compare
Updated dogtag to handle fallback to ip address |
a30c741
to
1f1c14b
Compare
e93b898
to
8447e26
Compare
Fix formatting |
8447e26
to
de33087
Compare
move shared files to common
…g to handle retry
[package.metadata.build-packages] | ||
source-groups = [ | ||
"netdog", | ||
"dogtag", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we could put dogtag
under netdog
(like how various update-related crates are under sources/updater
) but that can be done later
de33087
to
e0b18ac
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 🚢 🚢 🥅 🐶
Issue number:
Closes #3618
Removes conditional compilation of netdog for wicked and systemd networkd. This change moves our build system to build two variants of the netdog rpm: one for wicked and one for systemd-networkd. To facilitate this change the following was done:
#[cfg(net_backend = ]
to#[cfg(feature =
Testing done:
Built and published aws-ecs-1 (wicked) and aws-ecs-2 (systemd-networkd) and verified network accessibility and use in a ecs cluster.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.