Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: switch Rust startup to Rust only #1255

Merged
merged 1 commit into from
May 24, 2018
Merged

feat: switch Rust startup to Rust only #1255

merged 1 commit into from
May 24, 2018

Conversation

bbangert
Copy link
Member

Co-authored by: Phil Jenvey pjenvey@underboss.org

Closes #1243

alexcrichton
alexcrichton previously approved these changes May 23, 2018

[dependencies.config]
git = "https://github.com/mehcode/config-rs"
rev = "e8fa9fee96185ddd18ebcef8a925c75459111edb"
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW rev may not be necessary here as you're also using a Cargo.lock file which has the exact revision

@alexcrichton
Copy link
Contributor

🎉

@bbangert bbangert force-pushed the feat/issue-1243 branch 6 times, most recently from 3a692bb to be73bc0 Compare May 23, 2018 22:36
format!(
"{}://{}:{}",
self.endpoint_scheme,
self.endpoint_hostname.as_ref().unwrap_or(&hostname),
Copy link
Member

Choose a reason for hiding this comment

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

for just the connection node it doesn't make sense to fallback to hostname

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used to generate the endpoint, it needs some value from somewhere.

Copy link
Member

Choose a reason for hiding this comment

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

Can we just start expecting it here then? The python's handling of hostnames is pretty confusing

Copy link
Member Author

Choose a reason for hiding this comment

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

The tests assume the endpoint hostname will be set to the hostname. They'd all have to change too.

@@ -14,7 +14,7 @@ RUN \
make clean && \
pip install -r requirements.txt && \
python setup.py develop && \
cd autopush_rs && \
cargo install && \
Copy link
Member

Choose a reason for hiding this comment

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

needs --path

pub endpoint_scheme: String,
pub endpoint_hostname: Option<String>,
pub endpoint_port: u16,
pub crypto_key: String,
Copy link
Member

Choose a reason for hiding this comment

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

this is an append (List[str]) in main_argparse. Can Config do something similar?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not if we want it to work with env vars.

@mozilla-services mozilla-services deleted a comment from codecov-io May 23, 2018
@codecov-io
Copy link

codecov-io commented May 23, 2018

Codecov Report

Merging #1255 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1255      +/-   ##
=========================================
+ Coverage   99.99%    100%   +<.01%     
=========================================
  Files          60      60              
  Lines       10547   10554       +7     
=========================================
+ Hits        10546   10554       +8     
+ Misses          1       0       -1
Impacted Files Coverage Δ
autopush/main_argparse.py 100% <ø> (ø) ⬆️
autopush/main.py 100% <ø> (ø) ⬆️
autopush/tests/test_rs_integration.py 100% <100%> (+0.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c22ccd...0ef11b6. Read the comment docs.

@bbangert bbangert force-pushed the feat/issue-1243 branch 2 times, most recently from 641c490 to 892d438 Compare May 23, 2018 23:29
pjenvey
pjenvey previously approved these changes May 23, 2018
Co-authored by: Phil Jenvey <pjenvey@underboss.org>

Closes #1243
@bbangert bbangert merged commit 02cd0ea into master May 24, 2018
@bbangert bbangert deleted the feat/issue-1243 branch May 24, 2018 01:18
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.

4 participants