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

Use spread #563

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Use spread #563

wants to merge 3 commits into from

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Jan 24, 2024

Issue

  • The javascript actions operator is difficult to maintain.
  • Vectorization of integration tests currently depends on the github ci language.

Solution

Use spread.

  • task/suite or promtool check rules and promtool test rules (refs: 1, 2, 3)

References:

Testing Instructions

$ spread

@sed-i
Copy link
Contributor Author

sed-i commented Jan 24, 2024

@cmatsuoka would you be able to take a look at this draft?

  1. Wdyt about the file organization?
  2. How can I check why it hangs? It is the same setup script I have in the multipass charm-dev blueprint.
$ spread -v     
2024-01-23 22:32:45 Found /home/ubuntu/code/o11y/prometheus-k8s-operator/spread.yaml.
2024-01-23 22:32:48 Project content is packed for delivery (19.59MB).
2024-01-23 22:32:48 If killed, discard servers with: spread -reuse-pid=93746 -discard
2024-01-23 22:32:48 Allocating lxd:ubuntu-20.04...
2024-01-23 22:32:48 Using cached LXD image for lxd:ubuntu-20.04: 28edbe767c2e
2024-01-23 22:32:56 Waiting for lxd container spread-8-ubuntu-20-04 to have an address...
2024-01-23 22:32:58 Allocated lxd:ubuntu-20.04 (spread-8-ubuntu-20-04).
2024-01-23 22:32:58 Connecting to lxd:ubuntu-20.04 (spread-8-ubuntu-20-04)...
2024-01-23 22:33:03 Connected to lxd:ubuntu-20.04 (spread-8-ubuntu-20-04) at 10.41.168.50.
2024-01-23 22:33:03 Sending project content to lxd:ubuntu-20.04 (spread-8-ubuntu-20-04)...
2024-01-23 22:33:04 Preparing lxd:ubuntu-20.04 (spread-8-ubuntu-20-04)...
2024-01-23 22:33:24 Preparing lxd:ubuntu-20.04:tests/spread/k8s/ (spread-8-ubuntu-20-04)...
2024-01-23 22:38:24 WARNING: spread-8-ubuntu-20-04 (lxd:ubuntu-20.04:tests/spread/k8s/) running late. Current output:
-----
+ snap install microk8s --channel=1.26-strict/stable
2024-01-24T03:34:31Z INFO task ignored
microk8s (1.26-strict/stable) v1.26.11 from Canonical** installed
+ usermod -a -G snap_microk8s ubuntu
+ microk8s status --wait-ready
-----
.
2024-01-23 22:43:24 WARNING: spread-8-ubuntu-20-04 (lxd:ubuntu-20.04:tests/spread/k8s/) running late. Output unchanged.
2024-01-23 22:48:23 Error preparing lxd:ubuntu-20.04:tests/spread/k8s/ (spread-8-ubuntu-20-04) : 
-----
+ snap install microk8s --channel=1.26-strict/stable
2024-01-24T03:34:31Z INFO task ignored
microk8s (1.26-strict/stable) v1.26.11 from Canonical** installed
+ usermod -a -G snap_microk8s ubuntu
+ microk8s status --wait-ready

<kill-timeout reached>
-----
.
2024-01-23 22:48:23 Discarding lxd:ubuntu-20.04 (spread-8-ubuntu-20-04)...
2024-01-23 22:48:25 Successful tasks: 0
2024-01-23 22:48:25 Aborted tasks: 1
2024-01-23 22:48:25 Failed suite prepare: 1
    - lxd:ubuntu-20.04:tests/spread/k8s/
error: unsuccessful run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant