Skip to content

Do not merge #533

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

Draft
wants to merge 310 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
cc36c9f
Shell access to GitHub-hosted runner
yhaliaw Aug 15, 2023
516b009
Shell access to GitHub-hosted runner
yhaliaw Aug 15, 2023
24d3757
Trigger workflow
yhaliaw Aug 29, 2023
1871cb6
Trigger workflow
yhaliaw Aug 29, 2023
a0e875b
Trigger workflow
yhaliaw Aug 29, 2023
7ce38ae
Merge branch 'main' into do-not-merge
yhaliaw Aug 30, 2023
e8a7e7a
Trigger test e2e test
yhaliaw Aug 30, 2023
82b060d
Trigger workflow
yhaliaw Aug 30, 2023
e21328c
Trigger workflow
yhaliaw Aug 30, 2023
0bf767d
Trigger some xlarge runners
yhaliaw Sep 4, 2023
f95ddce
Merge branch 'main' into do-not-merge
yhaliaw Sep 4, 2023
558d1d4
Trigger xlarge runners
yhaliaw Sep 4, 2023
6ae837c
Add push test
yhaliaw Sep 4, 2023
f643309
Remove push test
yhaliaw Sep 4, 2023
cc073fd
Test push support
yhaliaw Sep 4, 2023
65c2c65
Remove push test
yhaliaw Sep 4, 2023
842c0d2
Merge branch 'main' into do-not-merge
yhaliaw Sep 7, 2023
124531e
Test github runner disk usage
yhaliaw Sep 7, 2023
263aa87
Test github runner disk usage
yhaliaw Sep 7, 2023
27489d7
Merge branch 'main' into do-not-merge
yhaliaw Sep 12, 2023
ac4a22b
Test runner
yhaliaw Sep 12, 2023
f80885b
Test tmate
yhaliaw Sep 13, 2023
2826a74
Test runner
yhaliaw Sep 14, 2023
fdfc4e4
Test github-runner
yhaliaw Sep 18, 2023
2ff6a43
Test e2e test
yhaliaw Sep 18, 2023
5507544
Test
yhaliaw Sep 18, 2023
11b9d30
Merge branch 'main' into do-not-merge
yhaliaw Sep 19, 2023
90fd983
Test with tmate
yhaliaw Sep 19, 2023
a78dc04
Test snap fix
yhaliaw Sep 20, 2023
819cd02
Test unconfined
yhaliaw Sep 20, 2023
7d01568
Test
yhaliaw Sep 26, 2023
ed427cb
Trigger manual test
yhaliaw Oct 13, 2023
bb95075
Merge branch 'main' into do-not-merge
yhaliaw Oct 13, 2023
3b0ec2f
Test DOCKERHUB_MIRROR env
yhaliaw Oct 20, 2023
f51282e
Test rust
yhaliaw Oct 20, 2023
2ea898a
Test rust install ripgrep
yhaliaw Oct 20, 2023
ffe9411
Fix rustup
yhaliaw Oct 20, 2023
7583777
Fix cargo path
yhaliaw Oct 20, 2023
7e58246
Test dockerhub mirrort push
yhaliaw Oct 20, 2023
7f79715
Test github runners
yhaliaw Nov 7, 2023
c60027d
Merge branch 'main' into do-not-merge
yhaliaw Nov 7, 2023
c78b9a7
Test GitHub runner
yhaliaw Nov 7, 2023
a56dc93
Fix test of github runner
yhaliaw Nov 7, 2023
467035e
Merge branch 'main' into do-not-merge
yhaliaw Nov 28, 2023
0acdeca
Run integration test
yhaliaw Nov 28, 2023
e0e3923
Test integration test with self-hosted runner
yhaliaw Nov 28, 2023
085c6ff
Test integration test with self-hosted runner
yhaliaw Nov 28, 2023
898c2a1
Test free disk space
yhaliaw Nov 29, 2023
8732c14
Test disk space of runners
yhaliaw Nov 29, 2023
a4409ce
Test on github-runner charm
yhaliaw Dec 5, 2023
62a107c
Merge branch 'main' into do-not-merge
yhaliaw Dec 5, 2023
afe8d92
Test integration test on edge runner
yhaliaw Dec 6, 2023
a023fdf
Merge branch 'main' into do-not-merge
yhaliaw Dec 8, 2023
0cbaddf
Test self-hosted runner
yhaliaw Dec 8, 2023
2205395
Test on self-hosted runner
yhaliaw Dec 11, 2023
1802423
Merge branch 'main' into do-not-merge
yhaliaw Dec 11, 2023
1c8732d
Test microk8s docker registry
yhaliaw Dec 12, 2023
ea9fab2
Test microk8s docker registry
yhaliaw Dec 12, 2023
995e1e1
Test DOCKHUB_MIRROR
yhaliaw Dec 13, 2023
ff572db
Test the above on github-runner
yhaliaw Dec 13, 2023
6e84bab
Test with env var
yhaliaw Dec 13, 2023
43bf2ed
Test on edge
yhaliaw Dec 15, 2023
fd1e666
Merge branch 'main' into do-not-merge
yhaliaw Dec 15, 2023
0d0627a
Test charmcraft pack
yhaliaw Jan 3, 2024
1374897
Test jammy edge
yhaliaw Jan 3, 2024
b657cea
Merge branch 'main' into do-not-merge
yhaliaw Jan 3, 2024
09285fa
Publish docs on main
yhaliaw Jan 8, 2024
46adc73
Test github runner disk size
yhaliaw Jan 29, 2024
21105a0
Merge branch 'main' into do-not-merge
yhaliaw Jan 29, 2024
10394a0
Test github provided runner disk size
yhaliaw Feb 19, 2024
425aba9
Merge branch 'main' into do-not-merge
yhaliaw Feb 19, 2024
223dd85
Test number of cpu
yhaliaw Feb 19, 2024
d22e28a
Merge branch 'main' into do-not-merge
yhaliaw Mar 5, 2024
452f2b2
Self-hoste ping localhsot
yhaliaw Mar 5, 2024
2ee213e
Test URL
yhaliaw Mar 15, 2024
3874f7a
Merge branch 'main' into do-not-merge
yhaliaw Mar 15, 2024
f13d8ce
Test microk8s
yhaliaw Mar 15, 2024
44af465
Merge branch 'main' into do-not-merge
yhaliaw Mar 21, 2024
2c43051
Test disk io
yhaliaw Mar 21, 2024
2d6fd0b
Disk test with less disk usage
yhaliaw Mar 21, 2024
84cc6d6
Merge branch 'main' into do-not-merge
yhaliaw Apr 2, 2024
49c368c
Test openstack runner
yhaliaw Apr 2, 2024
32c9634
Test openstack runner
yhaliaw Apr 2, 2024
b689be6
Test
yhaliaw Apr 10, 2024
f9e54f9
Test arm runner
yhaliaw Apr 15, 2024
332d850
Test arm64 runners
yhaliaw Apr 15, 2024
7ad0a3e
Test runner label
yhaliaw Apr 15, 2024
387fa60
test ssh tmate
yhaliaw Apr 17, 2024
f7a81fc
Merge branch 'main' into do-not-merge
yhaliaw Apr 17, 2024
2f91b50
Testing SSH connection
yhaliaw Apr 17, 2024
a25b2e5
Test SSH
yhaliaw Apr 18, 2024
18c8ad1
Test proxy
yhaliaw Apr 18, 2024
b8c401a
Test network for tmate
yhaliaw Apr 18, 2024
afa3d3e
Test tmate ssh server connection with netcat
yhaliaw Apr 18, 2024
aa98329
Fix wrong cmd
yhaliaw Apr 18, 2024
eae5ccb
Fix port host mixup
yhaliaw Apr 18, 2024
0bb2a27
fix: arm
yanksyoon Apr 18, 2024
8688c4d
arm debug
yanksyoon Apr 18, 2024
cfe9365
arm debug
yanksyoon Apr 18, 2024
b395c9d
run tmate only
yanksyoon Apr 18, 2024
a12b1c3
trigger
yanksyoon Apr 18, 2024
29f8812
test api
yanksyoon Apr 18, 2024
bc92443
test api fix
yanksyoon Apr 18, 2024
1b2526b
trigger
yanksyoon Apr 18, 2024
f502ff4
Test api.github.com
yhaliaw Apr 18, 2024
62a5d26
error stat code
yanksyoon Apr 18, 2024
1bf7221
merge
yanksyoon Apr 18, 2024
30b186d
Test x64 runner
yhaliaw Apr 18, 2024
3e6111d
test main
yanksyoon Apr 18, 2024
3e98047
debug
yanksyoon Apr 18, 2024
9c608cb
revert x64
yanksyoon Apr 18, 2024
59ff949
trigger
yanksyoon Apr 18, 2024
d6f598b
Test dockerhub cache
yhaliaw Apr 19, 2024
a62e495
Test dockerhub cache
yhaliaw Apr 19, 2024
5f5401c
Demo
yhaliaw Apr 19, 2024
8ce874b
Test aproxy
yhaliaw Apr 19, 2024
f579740
Test aproxy
yhaliaw Apr 19, 2024
9edb332
Test staging runner
yhaliaw Apr 20, 2024
9c4370b
Test python installation 3.8.10
yhaliaw Apr 22, 2024
18df44a
Test docker pull on self-hosted arm64
yhaliaw Apr 22, 2024
aaa0c4c
Use medium runners
yhaliaw Apr 22, 2024
f716ee8
Test stg arm runner
yhaliaw Apr 23, 2024
2ae107d
Test arm runners
yhaliaw Apr 23, 2024
22edcee
Test LXD and registry mirror docker configuration
yhaliaw Apr 24, 2024
abf83ea
Test docker config
yhaliaw Apr 24, 2024
ef5ad2a
Test stg
yhaliaw Apr 24, 2024
4cf0e04
Test groups
yhaliaw Apr 24, 2024
9751054
Test staging docker config file
yhaliaw Apr 24, 2024
0cfbb6b
Test parallel spawned runners
yhaliaw Apr 29, 2024
e71e9c8
Using medium arm64 runners
yhaliaw Apr 29, 2024
172e2f0
Test amd64 LXD sudo
yhaliaw May 2, 2024
d4ef3f7
Test install juju for arm64 runners
yhaliaw May 2, 2024
3cfc447
Test more LXD
yhaliaw May 2, 2024
190b656
Test large runners
yhaliaw May 2, 2024
9ab4487
Test with setup-lxd
yhaliaw May 2, 2024
15b21af
Test lxd init
yhaliaw May 2, 2024
cabb0dd
Test lxd init then install juju
yhaliaw May 2, 2024
1b21e5c
Test on stg
yhaliaw May 2, 2024
4323e47
Test juju bootstrap
yhaliaw May 2, 2024
0495a7f
Test always
yhaliaw May 2, 2024
d38c826
Test adm group
yhaliaw May 3, 2024
6e4ed5b
Add juju install
yhaliaw May 3, 2024
a942d75
Test adm group for lxd
yhaliaw May 3, 2024
7878964
Test benchmark on adm
yhaliaw May 3, 2024
0dded16
Test arm
yhaliaw May 3, 2024
dc7deda
Test arm
yhaliaw May 3, 2024
e83cb66
SSH into large runners
yhaliaw May 3, 2024
2f773f7
Test adm group
yhaliaw May 3, 2024
7d20654
Test adm group
yhaliaw May 3, 2024
f715fca
SSH to medium runners
yhaliaw May 3, 2024
8f6a40c
Test microceph
yhaliaw May 7, 2024
73871eb
Fix python version
yhaliaw May 7, 2024
0625701
Try another python version
yhaliaw May 7, 2024
959606b
Test on 10 runners
yhaliaw May 7, 2024
43a0601
Test 10 runners
yhaliaw May 7, 2024
b76423b
Add 1 min sleep
yhaliaw May 7, 2024
a94a302
Wait before
yhaliaw May 7, 2024
6c1a0ae
Test 10 arm runners
yhaliaw May 8, 2024
2af10e0
Sleep 1 hour arm medium
yhaliaw May 8, 2024
23fc9a0
Test network of arm64
yhaliaw May 8, 2024
bf9eed5
Bash script to test hardware
yhaliaw May 8, 2024
fbde8df
Add checkout for downloading script
yhaliaw May 8, 2024
143f85e
Test network with timestamp
yhaliaw May 8, 2024
71293cf
Test stg runner
yhaliaw May 9, 2024
959154c
Add sleep
yhaliaw May 9, 2024
7966626
Test pull rust image
yhaliaw May 9, 2024
0f8b91e
Test again
yhaliaw May 9, 2024
4ceae0f
Test networking of arm64 runners
yhaliaw May 14, 2024
da6c4b9
Fix format
yhaliaw May 14, 2024
e80d941
Improve the test logging
yhaliaw May 14, 2024
ac26cad
Build arm charm
yhaliaw Jun 13, 2024
144d989
Test uname
yhaliaw Jun 18, 2024
d314eb8
Test noble runners
yhaliaw Jun 28, 2024
e192a41
Test amd64 edges runners
yhaliaw Jul 5, 2024
6cca3ef
Merge branch 'main' into do-not-merge
yhaliaw Jul 5, 2024
47d1c44
test arm64 runners
yhaliaw Jul 5, 2024
ce399f4
Build arm64 charm
yhaliaw Jul 29, 2024
8b40a71
Test timeout
yhaliaw Sep 5, 2024
73c38fb
Merge branch 'main' into do-not-merge
yhaliaw Sep 5, 2024
f7a9475
Test wait
yhaliaw Sep 5, 2024
0913c8f
Merge branch 'main' into do-not-merge
yhaliaw Sep 5, 2024
9012a25
Merge branch 'main' into do-not-merge
yhaliaw Sep 6, 2024
ab54a0a
build arm charm
yhaliaw Sep 6, 2024
00fa4c1
Build arm charm from main
yhaliaw Sep 16, 2024
583195b
test arm64 staging runners
yhaliaw Sep 16, 2024
b7e458d
Test stg edge
yhaliaw Sep 16, 2024
5a3c927
Fix workflow issue
yhaliaw Sep 16, 2024
87a7f7a
Add test for amd64 edge
yhaliaw Sep 16, 2024
291f805
test arm64 stg runners
yhaliaw Sep 16, 2024
c0b0a1c
Merge branch 'main' into do-not-merge
yhaliaw Sep 23, 2024
058df0d
Spawn test runners
yhaliaw Sep 23, 2024
8bc2efa
Test large runner
yhaliaw Sep 23, 2024
6994c86
Fix operator setup??
yhaliaw Sep 23, 2024
ab96329
Another attempt to fix tox installation
yhaliaw Sep 23, 2024
a3d71c9
Test microk8s
yhaliaw Sep 23, 2024
e181dc6
Create juju env
yhaliaw Sep 23, 2024
b120059
Test
yhaliaw Sep 23, 2024
ed8c3e2
Debugging issue with strict microk8s
yhaliaw Sep 23, 2024
20110d5
Test on 1.30 microk8s
yhaliaw Sep 23, 2024
671ac1d
Test microk8s
yhaliaw Sep 26, 2024
a99fbc0
test microk8s dns error
yhaliaw Sep 26, 2024
aab2296
Add missing bootstrap
yhaliaw Sep 26, 2024
a8aae17
Fix group issue
yhaliaw Sep 26, 2024
b371c75
Trigger another workflow
yhaliaw Sep 26, 2024
e2e0ac4
Only tmate on error
yhaliaw Sep 26, 2024
f49cdec
Matrix it
yhaliaw Sep 26, 2024
e16e9d1
Test 3 microk8s
yhaliaw Sep 27, 2024
880bfbd
Use edge since we are out of large for 50 mins
yhaliaw Sep 27, 2024
28c4129
Test staging runners.
yhaliaw Oct 4, 2024
6c53795
Merge branch 'main' into do-not-merge
yhaliaw Oct 4, 2024
c9661f9
Build arm64 charm for revision 293
yhaliaw Nov 12, 2024
59eba71
Merge branch 'main' into do-not-merge
yhaliaw Nov 12, 2024
53cdd3c
Build arm charm
yhaliaw Nov 12, 2024
0809f1d
Test staging runners.
yhaliaw Nov 12, 2024
84052cc
Test prod private-endpoint
yhaliaw Dec 13, 2024
9946575
Merge branch 'main' into do-not-merge
yhaliaw Dec 13, 2024
cca4839
Merge branch 'main' into do-not-merge
yhaliaw Jan 16, 2025
c124dbf
Merge branch 'main' into do-not-merge
yhaliaw Jan 16, 2025
b33abd3
Trigger a runner with tmate running
yhaliaw Jan 16, 2025
5e92cd5
Start a github runner with tmate connection
yhaliaw Jan 17, 2025
f849081
Merge branch 'main' into do-not-merge
yhaliaw Jan 17, 2025
83119a6
Merge branch 'main' into do-not-merge
yhaliaw Feb 18, 2025
7f9ac29
Test canary arm64 jammy runners
yhaliaw Feb 18, 2025
e8fdb4c
Fix tmate branch
yhaliaw Feb 19, 2025
80f7feb
Test noble canary
yhaliaw Feb 19, 2025
b34b0e2
Merge branch 'main' into do-not-merge
yhaliaw Feb 19, 2025
1f9cdbe
Test a xlarge runner
yhaliaw Feb 21, 2025
7c2ed46
Test apt upgrade
yhaliaw Feb 21, 2025
cded8aa
Merge branch 'main' into do-not-merge
yhaliaw Mar 6, 2025
5f5d426
Test reactive
yhaliaw Mar 6, 2025
c17bd0d
Disable a test
yhaliaw Mar 6, 2025
c52410a
Test reactive
yhaliaw Mar 7, 2025
8ecc68b
Test tamte
yhaliaw Mar 11, 2025
77c5424
Test private endpoint
yhaliaw Mar 11, 2025
138bd32
test private
yhaliaw Mar 11, 2025
55fc085
Test tiobe jammy
yhaliaw Mar 13, 2025
9ffe65f
test tiobe reactive runners
yhaliaw Mar 13, 2025
2785e72
Test for release versin
yhaliaw Mar 13, 2025
73574d5
Test stg reactive
yhaliaw Mar 14, 2025
9d33154
Merge branch 'main' into do-not-merge
yhaliaw Mar 14, 2025
e9fa56d
Test long label for reactive
yhaliaw Mar 18, 2025
f2af106
Test LXD install
yhaliaw Mar 21, 2025
eab34d5
Merge branch 'main' into do-not-merge
yhaliaw Mar 21, 2025
942eeb5
Test focal reactive runners
yhaliaw Mar 27, 2025
1cd80e0
Merge branch 'main' into do-not-merge
yhaliaw Mar 27, 2025
58d731b
Test again
yhaliaw Mar 27, 2025
d4076b9
Test
yhaliaw Apr 23, 2025
f8e2eaf
Merge branch 'main' into do-not-merge
yhaliaw Apr 23, 2025
98f7a07
test ps7 edge
yhaliaw Apr 23, 2025
f5201ab
Test large runner
yhaliaw Apr 23, 2025
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
28 changes: 28 additions & 0 deletions .github/workflows/build_arm_charm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build arm charm

on:
# push:
workflow_dispatch:

jobs:
build:
runs-on: [self-hosted, linux, arm64]
steps:
- uses: actions/checkout@v4
with:
repository: 'canonical/github-runner-operator'
ref: 'b9dce2243310ef2c627fe7244b62824e5d44b541'
- name: Install dependencies
run: |
sudo snap install charmcraft --classic
sudo lxd init --auto
sudo usermod -a -G lxd $USER
- name: Pack the charm
run: |
export http_proxy="" https_proxy="" HTTP_PROXY="" HTTPS_PROXY=""
sg lxd -c "charmcraft pack"
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: charm
path: ./*.charm
9 changes: 5 additions & 4 deletions .github/workflows/comment.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Comment on the pull request

on:
workflow_run:
workflows: ["Tests"]
types:
- completed
workflow_dispatch:
# workflow_run:
# workflows: ["Tests"]
# types:
# - completed

jobs:
comment-on-pr:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/e2e_test.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: End-to-End tests

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# pull_request:
workflow_dispatch:

jobs:
# test option values defined at test/conftest.py are passed on via repository secret
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/integration_test.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: integration-tests

on:
pull_request:

schedule:
# Trigger at 6:00 AM and 6:00 PM UTC
- cron: "0 6,18 * * *"
#pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -14,9 +11,19 @@ concurrency:
jobs:
# test option values defined at test/conftest.py are passed on via repository secret
# INTEGRATION_TEST_ARGS to operator-workflows automatically.
integration-tests-juju2:
name: Integration test with juju 2.9
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
secrets: inherit
with:
juju-channel: 2.9/stable
pre-run-script: scripts/pre-integration-test.sh
provider: lxd
test-tox-env: integration-juju2.9
modules: '["test_charm_base_image", "test_charm_fork_repo", "test_charm_no_runner", "test_charm_scheduled_events", "test_charm_lxd_runner", "test_charm_runner", "test_charm_metrics_success", "test_charm_metrics_failure", "test_self_hosted_runner", "test_charm_with_proxy", "test_charm_with_juju_storage", "test_debug_ssh", "test_charm_upgrade"]'
integration-tests:
name: Integration test with juju 3.1
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@self-hosted-runner-integration-test
secrets: inherit
with:
juju-channel: 3.1/stable
Expand Down
258 changes: 258 additions & 0 deletions .github/workflows/manual_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
name: Manual test

on:
# push:
pull_request:
workflow_dispatch:

jobs:
# reactive-focal-large-long-label:
# name: reactive focal large with long label
# runs-on: [self-hosted, reactive, self-hosted-linux-amd64-focal-large]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# reactive-focal-large:
# name: reactive focal large
# runs-on: [self-hosted, reactive, large, focal, amd64]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# reactive-focal-medium-long-label:
# name: reactive focal medium with long label
# runs-on: [self-hosted, reactive, self-hosted-linux-amd64-focal-medium]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# reactive-focal-medium:
# name: reactive focal medium
# runs-on: [self-hosted, reactive, medium, focal, amd64]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# tiobe-noble:
# name: tiobe noble
# runs-on: [self-hosted, reactive, self-hosted-linux-amd64-noble-tiobe]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# tiobe:
# name: tiobe
# runs-on: [self-hosted, reactive, self-hosted-linux-amd64-jammy-tiobe]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# tiobe-noble-large:
# name: tiobe noble large
# runs-on: [self-hosted, reactive, self-hosted-linux-amd64-noble-large-tiobe]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# tiobe-large:
# name: tiobe large
# runs-on: [self-hosted, reactive, self-hosted-linux-amd64-jammy-large-tiobe]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: lsb_release -a
# self-hosted-medium-arm64-canary:
# name: self-hosted-medium-arm64-canary
# runs-on: [self-hosted, arm64, medium, canary, noble]
# steps:
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: echo $HTTP_PROXY
# - run: echo $HTTPS_PROXY
# - run: echo $NO_PROXY
# - run: echo $DOCKERHUB_MIRROR
# - name: tmate ssh
# uses: canonical/action-tmate@main
# self-hosted-large:
# name: self-hosted-large
# runs-on: [self-hosted, amd64, large, jammy]
# steps:
# - run: sudo snap install --classic lxd
# - run: echo $HTTP_PROXY
# - run: echo $HTTPS_PROXY
# - run: echo $NO_PROXY
# - run: echo $DOCKERHUB_MIRROR
# - name: tmate ssh
# uses: canonical/action-tmate@main
# self-hosted-prod-private-endpoint:
# name: self-hosted prod private endpoint
# runs-on: [self-hosted, X64, self-hosted-linux-amd64-jammy-private-endpoint-medium]
# steps:
# - run: echo hello
# self-hosted-stg:
# name: self-hosted staging
# runs-on: [self-hosted, X64, staging]
# steps:
# - run: echo hello
self-host-large:
name: self-hosted large
runs-on: [self-hosted, X64, large, jammy]
strategy:
fail-fast: false
matrix:
index: [0]
steps:
- run: echo hello
- name: tmate ssh
uses: canonical/action-tmate@main
self-host:
name: self-hosted edge
runs-on: [self-hosted, X64, edge, jammy]
strategy:
fail-fast: false
matrix:
index: [0]
steps:
- run: echo hello
- name: tmate ssh
uses: canonical/action-tmate@main
# - run: cat /etc/docker/daemon.json
# - run: docker pull github-runner-dockerhub-cache.canonical.com:5000/jujusolutions/charm-base:ubuntu-20.04
# - run: docker pull jujusolutions/charm-base:ubuntu-20.04
# - run: sleep 3600
# self-host-x64:
# name: self-hosted x64 test
# strategy:
# fail-fast: false
# matrix:
# index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
# runs-on: [self-hosted, X64, edge, jammy]
# steps:
# - run: uname -a
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.10.8
# - run: pip install boto3
# - run: python scripts/test_microceph.py
# github-test:
# name: GitHub x64 test
# runs-on: ubuntu-latest
# steps:
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8.10
# - run: sudo apt-get update
# - run: sudo apt install -y fio
# - name: seq write
# run: sudo fio --name=write_throughput --directory=/ --numjobs=4 --size=3G --time_based --runtime=60s --ramp_time=2s --ioengine=libaio --direct=1 --verify=0 --bs=1M --iodepth=64 --rw=write --group_reporting=1 --iodepth_batch_submit=64 --iodepth_batch_complete_max=64
# - run: sudo rm -f /write* /read*
# - name: rand write
# run: sudo fio --name=write_iops --directory=/ --numjobs=4 --size=3G --time_based --runtime=60s --ramp_time=2s --ioengine=libaio --direct=1 --verify=0 --bs=4k --iodepth=256 --rw=randwrite --group_reporting=1 --iodepth_batch_submit=256 --iodepth_batch_complete_max=256
# - run: sudo rm -f /write* /read*
# - name: seq read
# run: sudo fio --name=write_throughput --directory=/ --numjobs=4 --size=3G --time_based --runtime=60s --ramp_time=2s --ioengine=libaio --direct=1 --verify=0 --bs=1M --iodepth=64 --rw=read --group_reporting=1 --iodepth_batch_submit=64 --iodepth_batch_complete_max=64
# - run: sudo rm -f /write* /read*
# - name: rand read
# run: sudo fio --name=write_iops --directory=/ --numjobs=4 --size=3G --time_based --runtime=60s --ramp_time=2s --ioengine=libaio --direct=1 --verify=0 --bs=4k --iodepth=256 --rw=randread --group_reporting=1 --iodepth_batch_submit=256 --iodepth_batch_complete_max=256
# - run: sudo rm -f /write* /read*
# self-host-test-arm64:
# name: self-hosted arm64 test
# runs-on: [self-hosted, ARM64, medium]
# strategy:
# fail-fast: false
# matrix:
# index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
# index: [0]
# steps:
# - uses: actions/checkout@v4
# - run: bash scripts/test_hardware.sh
# - name: tmate ssh
# uses: canonical/action-tmate@debug
# - run: lscpu
# - run: df -h
# - run: free -h
# - run: uname -a
# - run: echo $HTTP_PROXY
# - run: echo $HTTPS_PROXY
# - run: echo $NO_PROXY
# - run: echo $DOCKERHUB_MIRROR
# - uses: canonical/[email protected]
# - run: lxd init --auto
# if: ${{ always() }}
# - run: lxc list
# if: ${{ always() }}
# - run: time sudo snap install juju
# if: ${{ always() }}
# - run: time juju bootstrap localhost localhost
# if: ${{ always() }}
# - run: sudo snap install aproxy --edge
# - run: sudo snap set aproxy proxy=squid.internal:3128 listen=:54969
# - run: |-
# sudo nft -f - << EOF
# define default-ip = $(ip route get $(ip route show 0.0.0.0/0 | grep -oP 'via \K\S+') | grep -oP 'src \K\S+')
# define private-ips = { 10.0.0.0/8, 127.0.0.1/8, 172.16.0.0/12, 192.168.0.0/16 }
# table ip aproxy
# flush table ip aproxy
# table ip aproxy {
# chain prerouting {
# type nat hook prerouting priority dstnat; policy accept;
# ip daddr != \$private-ips tcp dport { 80, 443 } counter dnat to \$default-ip:54969
# }

# chain output {
# type nat hook output priority -100; policy accept;
# ip daddr != \$private-ips tcp dport { 80, 443 } counter dnat to \$default-ip:54969
# }
# }
# EOF
# - run: nc -vz github-runner-dockerhub-cache.canonical.com 5000
# - run: curl $DOCKERHUB_MIRROR -vvv
# - run: sudo apt install docker.io -yq
# - run : docker pull github-runner-dockerhub-cache.canonical.com:5000/jujusolutions/charm-base:ubuntu-20.04
# - run : docker pull python
# - run: echo $TMATE_SERVER_HOST
# - run: echo $TMATE_SERVER_PORT
# - run: sudo apt install netcat
# - name: Test network connection to tmate ssh server
# run: nc -vz $TMATE_SERVER_HOST $TMATE_SERVER_PORT
# - name: tmate ssh
# uses: canonical/action-tmate@debug
# - uses: actions/[email protected]
# - uses: canonical/[email protected]
# - name: Pack charm
# run: |
# sudo snap install charmcraft --classic --channel latest/stable
# charmcraft pack -v
# - run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs >> rustup.sh
# - run: sh rustup.sh -y
# - run: $HOME/.cargo/bin/cargo install ripgrep
# github-test:
# name: GitHub x64 test
# runs-on: ubuntu-latest
# steps:
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Tests

on:
pull_request:
# pull_request:
workflow_dispatch:

jobs:

unit-tests:
uses: canonical/operator-workflows/.github/workflows/test.yaml@main
secrets: inherit
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_github_runner_manager.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Tests for github-runner-manager

on:
pull_request:
# pull_request:
workflow_dispatch:

jobs:
unit-tests-github-runner-manager:
Expand Down
Loading
Loading