Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

feat(proxy): coco ascension #414

Merged
merged 67 commits into from Jun 15, 2020
Merged

feat(proxy): coco ascension #414

merged 67 commits into from Jun 15, 2020

Conversation

xla
Copy link
Contributor

@xla xla commented May 22, 2020

Fixes #434

@xla xla added proxy feature Something that doesn't exist yet labels May 22, 2020
@xla xla assigned xla and FintanH May 22, 2020
Copy link
Contributor

@FintanH FintanH left a comment

Choose a reason for hiding this comment

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

Laying down some thoughts to track improvements, changes, and questions :)

proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco/source.rs Outdated Show resolved Hide resolved
proxy/src/coco/source.rs Outdated Show resolved Hide resolved
proxy/src/coco/source.rs Outdated Show resolved Hide resolved
proxy/src/http/control.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
@FintanH
Copy link
Contributor

FintanH commented May 22, 2020

We're currently not verifying any of the entities. We should :)

proxy/src/coco.rs Outdated Show resolved Hide resolved
means that we can implement the functionality via the PeerApi rather
than have a Client trait.

WIP: The tests compile but fail due to some secret key issues.
@FintanH FintanH added this to In progress in Respository Selector Jun 4, 2020
Copy link
Contributor Author

@xla xla left a comment

Choose a reason for hiding this comment

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

DOPE!!!!!!!!!!!!!!

proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/coco.rs Outdated Show resolved Hide resolved
proxy/src/http/control.rs Outdated Show resolved Hide resolved
proxy/src/http/control.rs Outdated Show resolved Hide resolved
proxy/src/http/source.rs Outdated Show resolved Hide resolved
proxy/src/http/source.rs Outdated Show resolved Hide resolved
proxy/src/main.rs Outdated Show resolved Hide resolved
@FintanH FintanH added this to In progress in User Identity Jun 12, 2020
@xla xla marked this pull request as ready for review June 15, 2020 07:43
@FintanH FintanH mentioned this pull request Jun 15, 2020
This was referenced Jun 15, 2020
Copy link
Contributor

@FintanH FintanH left a comment

Choose a reason for hiding this comment

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

All good from my perspective 😄

Copy link
Member

@rudolfs rudolfs left a comment

Choose a reason for hiding this comment

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

Awesome stuff! 🏖️ 🦺 ✌️

Biggest question is: why do my project disappear after I restart the app?

Inlined a couple more questions.

@@ -15,4 +15,3 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get -y update
RUN apt-get -y install yarn
RUN rustup component add clippy --toolchain nightly-2020-02-05-x86_64-unknown-linux-gnu
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean we're not installing the rust toolchain in the image and are instead downloading it every time? If that's true, it will blow up on CI after a while.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, it's just part of the base image.

Copy link
Member

Choose a reason for hiding this comment

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

And does this registry base image have the same rust-toolchain version the coco dependency? Will both dependencies always be on the same version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We currently don't actively coordinate the toolchain versions across projects. Historically registry was the first to adopt nightly, so we have been trailing theirs. They also off the base image conveniently. This could be raised in radicle-decisions as a cross-engineering concern.

package.json Outdated Show resolved Hide resolved
proxy/src/http/control.rs Show resolved Hide resolved
ui/Screen/ProjectCreation.svelte Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
@rudolfs
Copy link
Member

rudolfs commented Jun 15, 2020

I also noticed that the URNs are not consistent anymore:

Screenshot 2020-06-15 at 10 26 44

Screenshot 2020-06-15 at 10 28 02

@FintanH
Copy link
Contributor

FintanH commented Jun 15, 2020

Biggest question is: why do my project disappear after I restart the app?

@rudolfs: is this happening running the application in "production" mode? It might be something I need you to walk myself or xla through 👀

@rudolfs
Copy link
Member

rudolfs commented Jun 15, 2020

@FintanH what is the "production mode"? I start it as I've always done with yarn start, create my projects, quit the app and start it again with yarn start.

@FintanH
Copy link
Contributor

FintanH commented Jun 15, 2020

@FintanH what is the "production mode"? I start it as I've always done with yarn start, create my projects, quit the app and start it again with yarn start.

That sounds like "production mode" to me 😅 There's a flag that checks are we testing or not and depending on that the setup for coco is different, i.e. uses tmp dirs.

I would expect the projects to be persisted so we should look into that.

@rudolfs
Copy link
Member

rudolfs commented Jun 15, 2020

I would expect the projects to be persisted so we should look into that.

xla: The reason the state is wiped on restart is that we fake the resolvers with an in-memory hashmap for now.

Will be addressed in: #456

@xla xla linked an issue Jun 15, 2020 that may be closed by this pull request
@xla xla requested a review from rudolfs June 15, 2020 11:36
@xla xla dismissed rudolfs’s stale review June 15, 2020 11:36

All points addressed.

@xla xla merged commit 18acd59 into master Jun 15, 2020
@xla xla deleted the coco-ascension branch June 15, 2020 12:32
@rudolfs rudolfs moved this from In progress to Done in Respository Selector Jun 16, 2020
@FintanH FintanH moved this from In progress to Done in User Identity Jun 23, 2020
@FintanH FintanH moved this from In progress to Done in Link-Proxy Integration Jun 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Something that doesn't exist yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Create new project branch selector shows remote branches
3 participants