Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Docker Desktop installation #129

Merged
merged 94 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
93b3d21
Add docker desktop uninstallation to setup tests.
reynoldsalec Mar 12, 2024
a41a6b6
Add in more os's to the matrix.
reynoldsalec Mar 12, 2024
4de2789
Run lando setup.
reynoldsalec Mar 12, 2024
5811e80
Check if things are arm-ed.
reynoldsalec Mar 12, 2024
004f6ae
whoami?
pirog Mar 13, 2024
1144433
Merge branch 'docker-desktop' of github.com:lando/core into docker-de…
pirog Mar 13, 2024
c21d99f
improve non-interactive lando setup stuff
pirog Mar 13, 2024
3a6650e
debug it
pirog Mar 13, 2024
162b53e
clean up tests and dogfood core for setup tests
pirog Mar 13, 2024
6b986cd
clean up tests and dogfood core for setup tests part 2
pirog Mar 13, 2024
c0f3c0f
split the tests up
pirog Mar 13, 2024
f177854
DEBUGGY with DEBUSSY
pirog Mar 13, 2024
2c4f20e
DEBUGGY with DEBUSSY 2
pirog Mar 13, 2024
654af3f
abstract out core installation to github_workspace
pirog Mar 13, 2024
1cbb840
abstract out core installation to github_workspace part 2
pirog Mar 13, 2024
c8db3b1
abstract out core installation to github_workspace part 3
pirog Mar 13, 2024
1f58ac9
clean up tests and extend them to include multi-arch darwin
pirog Mar 13, 2024
8ef18e6
stash some events work fn
pirog Mar 13, 2024
4d545e7
add basic lando start tests to posix setup tests
pirog Mar 13, 2024
87e969e
update the dockers
pirog Mar 13, 2024
b8c1308
improve docker compatibility issues
pirog Mar 13, 2024
9480880
more macos docker debuggin
pirog Mar 13, 2024
14ea202
more macos docker debuggin part 2
pirog Mar 13, 2024
5b3aabd
more macos docker debuggin part 3
pirog Mar 13, 2024
66baf95
more macos docker debuggin part 4
pirog Mar 13, 2024
da80226
more macos docker debuggin part 5
pirog Mar 13, 2024
2c3aff0
more macos docker debuggin part 6
pirog Mar 13, 2024
6124f61
more macos docker debuggin part 7
pirog Mar 13, 2024
a405d42
Try some Windows uninstall/intall with chocolatey.
reynoldsalec Mar 13, 2024
6087c01
Try alternative docker uninstall on windows.
reynoldsalec Mar 13, 2024
67c1e8c
more macos docker debuggin part 8
pirog Mar 13, 2024
4370306
Merge branch 'docker-desktop' of github.com:lando/core into docker-de…
pirog Mar 13, 2024
15851ba
more macos docker debuggin part 9
pirog Mar 13, 2024
13c9b01
more macos docker debuggin part 10
pirog Mar 13, 2024
368dd8e
more macos docker debuggin part 11
pirog Mar 13, 2024
8c60136
more macos docker debuggin part 12
pirog Mar 13, 2024
073a918
more macos docker debuggin part 13
pirog Mar 13, 2024
4df6738
more macos docker debuggin part 14
pirog Mar 13, 2024
e7b4804
more macos docker debuggin part 15
pirog Mar 13, 2024
64c7244
more macos docker debuggin part 16
pirog Mar 13, 2024
eaf4f14
Windows debugging.
reynoldsalec Mar 13, 2024
88c24d1
clean up debugging stuff
pirog Mar 14, 2024
e62a5cd
clean up debugging stuff part 2
pirog Mar 14, 2024
f1e4651
Merge branch 'docker-desktop' of github.com:lando/core into docker-de…
pirog Mar 14, 2024
a1c1110
fixed bug causing once events to run more than once
pirog Mar 14, 2024
b9b4225
fixed bug causing lando setup to double the plugin count
pirog Mar 14, 2024
c8911ef
fix orchestrator test
pirog Mar 14, 2024
af51e18
Merge branch 'main' of github.com:lando/core into docker-desktop
pirog Mar 14, 2024
27ef352
Try to find windows docker.
reynoldsalec Mar 14, 2024
91c7ed7
Try finding Docker package/provider. See if choco install docker-desk…
reynoldsalec Mar 14, 2024
307df14
Try Uninstall-Module -Name DockerMsftProvider and see if choco can in…
reynoldsalec Mar 14, 2024
37eb421
Modify setup-windows leia tests.
reynoldsalec Mar 14, 2024
dabd690
Add command to see enabled features on the task runner.
reynoldsalec Mar 14, 2024
933cf95
Better Windows lando test.
reynoldsalec Mar 14, 2024
1deff7b
More trials of uninstalling Docker for Windows.
reynoldsalec Mar 14, 2024
6697f78
Windows debugging.
reynoldsalec Mar 14, 2024
74c735b
Try docker version.
reynoldsalec Mar 14, 2024
a1819ab
DEBUG WIN
pirog Mar 15, 2024
801f121
DEBUG WIN2
pirog Mar 15, 2024
a367ed1
DEBUG WIN3
pirog Mar 15, 2024
994f34c
DEBUG WIN4
pirog Mar 15, 2024
bc4d581
DEBUG WIN5
pirog Mar 15, 2024
2cf5009
DEBUG WIN5
pirog Mar 15, 2024
72e3691
DEBUG WIN6
pirog Mar 15, 2024
6f38aaa
DEBUG WIN7
pirog Mar 15, 2024
e7d1cef
DEBUG WIN8
pirog Mar 15, 2024
ea567bf
DEBUG WIN9
pirog Mar 15, 2024
128aaa7
DEBUG WIN10
pirog Mar 15, 2024
eb40fd7
DEBUG WIN11
pirog Mar 15, 2024
6e514f0
DEBUG WIN12
pirog Mar 15, 2024
9c55633
DEBUG WIN13
pirog Mar 15, 2024
0dc2cac
DEBUG WIN14
pirog Mar 15, 2024
4b55454
DEBUG WIN15
pirog Mar 15, 2024
102e221
DEBUG WIN16
pirog Mar 15, 2024
5ee776c
DEBUG WIN17
pirog Mar 15, 2024
e36e33a
DEBUG WIN18
pirog Mar 15, 2024
ef444bb
DEBUG WIN19
pirog Mar 15, 2024
f9bdd49
update leia
pirog Mar 15, 2024
f3929d6
DEBUG WIN20
pirog Mar 15, 2024
87d8b86
fix and standardize debug usage on spawny things
pirog Mar 15, 2024
dc78c95
DEBUG WIN21
pirog Mar 15, 2024
f96fff0
DEBUG WIN22
pirog Mar 15, 2024
5e0ef8d
DEBUG WIN23
pirog Mar 15, 2024
7b5b627
fix busted debug assignment
pirog Mar 15, 2024
f86bfbf
update leia
pirog Mar 15, 2024
e0ab932
fix busted debug assignment
pirog Mar 15, 2024
eedff1f
rework tests to establish baseline
pirog Mar 15, 2024
c7b3dd6
rework tests to establish baseline part 2
pirog Mar 15, 2024
ee88797
remove debugging
pirog Mar 15, 2024
5efdffa
DEBUG WIN24
pirog Mar 15, 2024
629055b
DEBUG WIN25
pirog Mar 15, 2024
d074e22
DEBUG WIN26
pirog Mar 15, 2024
4109fff
DEBUG WIN27
pirog Mar 15, 2024
f4fe332
DEBUG WIN28
pirog Mar 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/pr-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ jobs:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
GITHUB_PAT: ${{ secrets.PIROG_TOKEN }}
GITHUB_KEY_NAME: "${{ github.sha }}${{ matrix.docker-compose-version }}"
strategy:
fail-fast: false
matrix:
docker-compose-version:
- "2.24.5"
healthcheck:
- new
lando-version:
- 3-dev-slim
- 3-slim
# uncomment to test against bleeding edge cli
# - 3-dev-slim
leia-test:
- examples/badname
- examples/base
Expand All @@ -39,9 +35,14 @@ jobs:
node-version:
- "18"
os:
# - macos-13
# - macos-14
- ubuntu-22.04
scanner:
- new
# - windows-2022
shell:
- bash

# TODO: includes for also running windows tests on cmd/powershell?

steps:
- name: Checkout code
Expand Down Expand Up @@ -71,20 +72,19 @@ jobs:
uses: lando/setup-lando@v2
with:
lando-version: ${{ matrix.lando-version }}
dependency-check: false
telemetry: false
config: |
setup.skipCommonPlugins=true
setup.plugins.@lando/core=/home/runner/work/core/core
setup.orchestrator=${{ matrix.docker-compose-version }}
orchestratorVersion=${{ matrix.docker-compose-version }}
setup.plugins.@lando/core=${{ github.workspace }}
- name: Run Leia Tests
uses: lando/run-leia-action@v2
env:
LANDO_SCANNER: ${{ matrix.scanner }}
LANDO_HEALTHCHECK: ${{ matrix.healthcheck }}
GH_PCKG_KEY: ${{ secrets.GH_PCKG_KEY }}
GITHUB_PAT: ${{ secrets.PIROG_TOKEN }}
GITHUB_KEY_NAME: "${{ github.sha }}${{ matrix.os }}"
with:
leia-test: "./${{ matrix.leia-test }}/README.md"
cleanup-header: "Destroy tests"
shell: bash
shell: ${{ matrix.shell }}
stdin: true
2 changes: 1 addition & 1 deletion .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- "18"
steps:
Expand Down
47 changes: 14 additions & 33 deletions .github/workflows/pr-plugin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ jobs:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
GITHUB_PAT: ${{ secrets.PIROG_TOKEN }}
GITHUB_KEY_NAME: "${{ github.sha }}${{ matrix.docker-compose-version }}"
strategy:
fail-fast: false
matrix:
docker-compose-version:
- "2.24.5"
healthcheck:
- new
lando-version:
- 3-dev-slim
- 3-slim
# uncomment to test against bleeding edge cli
# - 3-dev-slim
leia-test:
- examples/healthcheck
- examples/networking
Expand All @@ -27,26 +23,15 @@ jobs:
node-version:
- "18"
os:
# - macos-13
# - macos-14
- ubuntu-22.04
scanner:
- new
include:
# run legacy scanner checks on dc2
- docker-compose-version: "2.21.0"
healthcheck: new
node-version: "18"
lando-version: 3-dev
leia-test: examples/scanner
os: ubuntu-22.04
scanner: legacy
# run legacy healthchecks on dc2
- docker-compose-version: "2.21.0"
healthcheck: legacy
node-version: "18"
lando-version: 3-dev
leia-test: examples/healthcheck
os: ubuntu-22.04
scanner: new
# - windows-2022
shell:
- bash

# TODO: includes for also running windows tests on cmd/powershell?


steps:
- name: Checkout code
Expand All @@ -70,19 +55,15 @@ jobs:
uses: lando/setup-lando@v2
with:
lando-version: ${{ matrix.lando-version }}
dependency-check: false
telemetry: false
config: |
setup.skipCommonPlugins=true
setup.plugins.@lando/core=/home/runner/work/core/core
setup.orchestrator=${{ matrix.docker-compose-version }}
orchestratorVersion=${{ matrix.docker-compose-version }}
setup.plugins.@lando/core=${{ github.workspace }}
- name: Run Leia Tests
uses: lando/run-leia-action@v2
env:
LANDO_SCANNER: ${{ matrix.scanner }}
LANDO_HEALTHCHECK: ${{ matrix.healthcheck }}
with:
leia-test: "./${{ matrix.leia-test }}/README.md"
cleanup-header: "Destroy tests"
shell: bash
shell: ${{ matrix.shell }}
stdin: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Setup Tests
name: Setup Linux Tests

on:
pull_request:
Expand All @@ -8,35 +8,23 @@ jobs:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
GITHUB_PAT: ${{ secrets.PIROG_TOKEN }}
GITHUB_KEY_NAME: "${{ github.sha }}${{ matrix.docker-compose-version }}"
strategy:
fail-fast: false
matrix:
docker-compose-version:
- "2.24.5"
healthcheck:
- new
lando-version:
- 3-dev-slim
- 3-slim
# uncomment to test against bleeding edge cli
# - 3-dev-slim
leia-test:
- examples/setup
- examples/setup-linux
node-version:
- "18"
os:
- ubuntu-22.04
scanner:
- new

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEPLOY_KEY }}
known_hosts: unnecessary
if_key_exists: replace
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -56,14 +44,13 @@ jobs:
uses: lando/setup-lando@v2
with:
lando-version: ${{ matrix.lando-version }}
dependency-check: false
setup: false
telemetry: false
setup: off
- name: Run Leia Tests
uses: lando/run-leia-action@v2
env:
LANDO_SCANNER: ${{ matrix.scanner }}
LANDO_HEALTHCHECK: ${{ matrix.healthcheck }}
GH_PCKG_KEY: ${{ secrets.GH_PCKG_KEY }}
CORE_PLUGIN_PATH: ${{ github.workspace }}
with:
leia-test: "./${{ matrix.leia-test }}/README.md"
cleanup-header: "Destroy tests"
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/pr-setup-macos-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Setup macOS Tests

on:
pull_request:

jobs:
leia-tests:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
fail-fast: false
matrix:
lando-version:
- 3-slim
# uncomment to test against bleeding edge cli
# - 3-dev-slim
leia-test:
- examples/setup-macos
node-version:
- "18"
os:
- macos-13
- macos-14

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
# bundle deps is needed so local plugin installation succeeds
- name: Bundle Deps
uses: lando/prepare-release-action@v3
with:
lando-plugin: true
version: dev
sync: false
- name: Setup lando ${{ matrix.lando-version }}
uses: lando/setup-lando@v2
with:
lando-version: ${{ matrix.lando-version }}
dependency-check: false
setup: false
telemetry: false
- name: Run Leia Tests
uses: lando/run-leia-action@v2
env:
CORE_PLUGIN_PATH: ${{ github.workspace }}
with:
leia-test: "./${{ matrix.leia-test }}/README.md"
cleanup-header: "Destroy tests"
shell: bash
stdin: true
100 changes: 100 additions & 0 deletions .github/workflows/pr-setup-windows-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Setup Windows Tests

on:
pull_request:

jobs:
leia-tests:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
fail-fast: false
matrix:
lando-version:
- 3-slim
# uncomment to test against bleeding edge cli
# - 3-dev-slim
leia-test:
- examples/setup-windows
node-version:
- "18"
os:
- windows-2022
shell:
- bash
- cmd
- powershell

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
# bundle deps is needed so local plugin installation succeeds
- name: Bundle Deps
uses: lando/prepare-release-action@v3
with:
lando-plugin: true
version: dev
sync: false
- name: Setup lando ${{ matrix.lando-version }}
uses: lando/setup-lando@v2
with:
lando-version: ${{ matrix.lando-version }}
dependency-check: false
setup: false
telemetry: false
# we need to do this to avoid having multiple examples due to different shell considerations
- name: Prep for multishell
shell: powershell
run: |
Stop-Service -Name docker -Force
Remove-Item -Path (Get-Command docker).Source -Force
lando plugin-add "@lando/core@file:${{ github.workspace }}"

# @TODO: we need to reimplement this with leia tests like the other os setup tests but ran out of time
# becuse this one is a bit more involved since it tries three different shells
- name: Lando Setup - BASH
if: matrix.shell == 'bash'
shell: bash
run: lando setup -y
- name: Lando Setup - CMD
if: matrix.shell == 'cmd'
shell: cmd
run: lando setup -y
- name: Lando Setup - POWERSHELL
if: matrix.shell == 'powershell'
shell: powershell
run: lando setup -y

# @TODO: for some reason the below refused to load anything but bash so we are just going to invoke leia
# directly for now but eventually we need to find out why this is the case
# - name: Run Leia Tests
# uses: lando/run-leia-action@v2
# env:
# CORE_PLUGIN_PATH: ${{ github.workspace }}
# with:
# leia-test: "./${{ matrix.leia-test }}/README.md"
# cleanup-header: "Destroy tests"
# shell: powershell
# stdin: true
# debug: true
# - name: Run Leia Tests
# shell: bash
# run: |
# npx leia --version
# npx leia "./${{ matrix.leia-test }}/README.md" \
# --setup-header=Start,Setup,This is the dawning \
# --test-header=Test,Validat,Verif \
# --cleanup-header=Destroy tests \
# --shell=${{ matrix.shell }} \
# --retry=1 \
# --stdin \
# --debug
5 changes: 3 additions & 2 deletions .github/workflows/pr-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
fail-fast: false
matrix:
os:
- windows-2022
- macos-13
- macos-14
- ubuntu-22.04
- macos-12
- windows-2022
node-version:
- "18"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- "18"

Expand Down
Loading
Loading