Giter VIP home page Giter VIP logo

Comments (14)

rfk avatar rfk commented on June 22, 2024 1

@tublitzed it should be back up now (but not that it's only http:// not https://, because I didn't have the bandwidth to fiddle with setting up TLS)

from services-engineering.

rfk avatar rfk commented on June 22, 2024 1

Heh, well, that's probably sensible client behaviour on balance :-)

@eoger has been working on a combo of local appservices + firefox-ios lately so he may be able to give you some advice on doing a build there.

Otherwise, I can try to timebox getting a cert setup on that machine, perhaps by using some existing fxa-dev domains and certificates. I won't get a chance this week, so what I suggest is: see if Ed can help with a local build that disables the check, and if that doesn't work out, leave me a note here in the bug and I'll look into TLS setup on my Monday.

from services-engineering.

rfk avatar rfk commented on June 22, 2024 1

Thanks both! I've taken the instructions above and copied them into a "howto" doc here for future reference.

from services-engineering.

rfk avatar rfk commented on June 22, 2024

I believe this is now the last remaining item for mozilla/application-services#2486

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

thanks, @rfk - if I plan to do this by the end of next week (2/21 EOD) does that work with your planned timeline?

from services-engineering.

rfk avatar rfk commented on June 22, 2024

SGTM 👍

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

Hey, @rfk I'm seeing that migratinator.rfk.id.au is currently timing out. Are you seeing the same thing? I'll get iOS setup locally so I'm ready to test, but until that test site is back up I may not be able to do much here.

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

Since iOS doesn't support setting a custom token server url via the UI, current plan is to get a local version running and manually override the token server url here. I'll start by just seeing if that'll work pointed at say, staging without updating any of the other values. I ran into some trouble recently trying to get this working for Fenix so hopefully the same thing isn't also an issue with iOS 🤞.

from services-engineering.

rfk avatar rfk commented on June 22, 2024

I'm seeing that migratinator.rfk.id.au is currently timing out. Are you seeing the same thing?

Indeed I am; investigating now.

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

Thanks @rfk! Now, for the less good news here.... it looks like we may need to get https working in order to test iOS through the simulator. I'm seeing this error:

2020-02-20 18:08:17.224 [Error] [Profile.swift:278] init(localName:syncDelegate:clear:) > [RUST][places::ffi] Unexpected sync error: Error(

Error synchronizing: Network error: Validation error: URL does not use TLS protocol.)
2020-02-20 18:08:17.225 [Debug] [Profile.swift:1206] syncWith(synchronizers:account:statsSession:why:) > Syncing history…
2020-02-20 18:08:17.225 [Debug] [Profile.swift:1014] syncHistoryWithDelegate(_:prefs:ready:why:) > Syncing history to storage.
2020-02-20 18:08:17.225 [Info] [Synchronizer.swift:202] init(scratchpad:delegate:basePrefs:why:collection:) > Synchronizer configured with prefs 'profile.sync.synchronizer.history...'
2020-02-20 18:08:17.225 [Debug] [Profile.swift:1341] greenLight() > Checking green light. Backgrounded: false.

When I try to set this value to use this url http://migratinator.rfk.id.au/token/1.0/sync/1.5.

I'm not sure if there's a quick way to disable the validation check here and then rebuild against local application-services? If there are details somewhere for building iOS locally pointed to local rust components from application-services, let me know...I can try that next and just disable that check.

from services-engineering.

eoger avatar eoger commented on June 22, 2024

Here's how I do it:

First build the a-s iOS framework:
carthage build --no-skip-current --platform iOS --verbose --configuration Debug --cache-builds
I suspect you could use ./build-carthage.sh instead but that's my workflow so heh.

On the fx iOS side, after carthage boostrap, replace the a-s framework with a symlink:

rm -rf Carthage/Build/iOS/MozillaAppServices.framework
ln -s ~/application-services/Carthage/Build/iOS/Static/MozillaAppServices.framework Carthage/Build/iOS

Every time you make a change to a-s, you simply have to re-run the carthage build command in the beginning, maybe clear fx iOS xcode cache with Cmd+k and you're good to go.

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

awesome, thanks @eoger! I'll try that.

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

💥 it worked. I can sync now! I updated this open firefox-ios PR I had to include these instructions in case anyone else is trying to do this in the future.

from services-engineering.

tublitzed avatar tublitzed commented on June 22, 2024

I just commented over in the main issue with my test results. TL;DR - everything looks good. Closing this one out.

from services-engineering.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.