Skip to content

Restore ssh (Universe) tests#1499

Merged
gerhard merged 2 commits into
dagger:mainfrom
gerhard:restore-docker-compose-tests
Jan 26, 2022
Merged

Restore ssh (Universe) tests#1499
gerhard merged 2 commits into
dagger:mainfrom
gerhard:restore-docker-compose-tests

Conversation

@gerhard
Copy link
Copy Markdown
Contributor

@gerhard gerhard commented Jan 25, 2022

Before we could restore the ssh (Universe) tests, we needed to spin up a new dagger-ci VM, see why: #1493 (comment)

Why did we go all declarative?

Since we don't have a Click Ops Officer on the team, and because we love declarative systems, we wanted to provision this VM in a declarative way. Any team member can now run a single command - make dagger-ci - and some minutes later everything that we need for ssh (Universe) tests materializes.

How did we do this?

With a bit of help from @tazjin, a NixOS guru. I was not expecting NixOS to fit this nicely in the Dagger Universe. I am so excited to explore what fitting Dagger within NixOS looks like 😉

What else is new & worth mentioning?

image

This will not work for all team members just yet:
Screenshot 2022-01-26 at 22 25 56


  • Shared the direction with @jlongtine async, while we were writing the release notes for v0.1.0 🍐
  • Showed @grouville how this works, and guided him through creating the current dagger-ci instance

This requires us to spin up a new dagger-ci VM, as mentioned here:
#1493 (comment)

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
@gerhard gerhard requested a review from grouville January 26, 2022 15:49
@gerhard gerhard changed the title [WIP] Restore docker compose tests Restore docker compose tests Jan 26, 2022
@gerhard gerhard changed the title Restore docker compose tests Restore ssh integration tests Jan 26, 2022
@gerhard gerhard changed the title Restore ssh integration tests Restore ssh integration (Universe) tests Jan 26, 2022
@gerhard gerhard changed the title Restore ssh integration (Universe) tests Restore ssh (Universe) tests Jan 26, 2022
Copy link
Copy Markdown
Contributor

@aluzzardi aluzzardi left a comment

Choose a reason for hiding this comment

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

Looks good!

My only comment is to scope this in a sub-directory (e.g. infra or whatnot) since it's "internal" tooling, not relevant for most contributors

While at it, add help make target & make it the default.
This explains all make targets. Run `make help` to see it in action 😉

dagger-ci-pr1499-2022-01-26 API token was added as an AGE secret. It can
be accessed only by the intended recipients are able to decrypt it with
their private SSH keys.

    echo "TOKEN" | age -R .age.recipients.txt -o .do.dagger-ci-pr1499-2022-01-26.age

Do not assume that /bin/true exists on hosts running Docker.  Use "true"
and let the system resolve the path.

Re-enable all ssh Universe tests.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
@gerhard gerhard requested review from aluzzardi and removed request for grouville January 26, 2022 23:15
@gerhard gerhard merged commit 39e206e into dagger:main Jan 26, 2022
@gerhard gerhard deleted the restore-docker-compose-tests branch January 26, 2022 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants