Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Add CI #36

Closed
wants to merge 14 commits into from
Closed

Add CI #36

wants to merge 14 commits into from

Conversation

ammario
Copy link
Member

@ammario ammario commented Apr 18, 2019

No description provided.


RUN apt update && \
apt install -y shellcheck python-pip && \
pip install autobahntestsuite
Copy link
Contributor

Choose a reason for hiding this comment

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

can remove this. and python-pip

@nathanpotter nathanpotter force-pushed the ci branch 4 times, most recently from 689f5e4 to 1576a6a Compare May 3, 2019 20:26
@nathanpotter
Copy link
Contributor

resolves #2
resolve #52

@nathanpotter nathanpotter marked this pull request as ready for review May 3, 2019 20:29
@nathanpotter nathanpotter requested a review from nhooyr May 3, 2019 20:30
project.go Outdated
@@ -250,7 +250,9 @@ func (p *project) waitOnline() error {
cli := dockerClient()
defer cli.Close()

ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
// Give a pretty significant amount of time since the `chown -R` call from
Copy link
Contributor

Choose a reason for hiding this comment

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

I played with a similar script I wrote myself but abandoned it because of this. I don't think its a good idea to merge this if the startup for a container starts taking a minute. Why does sail not work on travis? What uid is the user on travis created with?

Copy link
Contributor

Choose a reason for hiding this comment

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

@nathanpotter according to the docs at https://github.com/boxboat/fixuid/tree/0ec93d22e52bde5b7326e84cb62fd26a3d20cead#overview

its shouldn't be chowning mounts so it shouldn't be slow, its changing the user inside the container to match the one outside.

Copy link
Contributor

Choose a reason for hiding this comment

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

The user that runs the CI on travis is travis:travis with uid:gid 2000:2000

It says it changes all the file permissions for old uid:gid to be the new uid:gid, which is what seems to be taking so long. It appears to be doing this recursively on each of the mounts in /proc/mounts, see:
https://github.com/boxboat/fixuid/blob/0ec93d22e52bde5b7326e84cb62fd26a3d20cead/fixuid.go#L187

Copy link
Contributor

Choose a reason for hiding this comment

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

I think in our CI, we should switch the travis user to uid 1000 instead of making sail do it as then regular users will experience the slowdown as well.

Copy link
Contributor

@nathanpotter nathanpotter left a comment

Choose a reason for hiding this comment

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

We should also change fmtImage in project.go to be fmt.Sprintf("codercom/ubuntu-dev-%s:latest", img)

Oops, wrong PR...

@ammario
Copy link
Member Author

ammario commented May 21, 2019

Can we get this merged and then resolve @nhooyr 's comments in another PR? I think CI is going to be important for this repo... A lot of moving parts.

@nhooyr
Copy link
Contributor

nhooyr commented May 21, 2019

my comments are a blocker. The slowdown is too much and the fix I proposed is easy.

@nathanpotter
Copy link
Contributor

Will update to use the new uid:gid and remove the fixuid

@ammario ammario closed this Jun 19, 2019
@deansheather deansheather mentioned this pull request Jun 24, 2019
Open
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.

3 participants