Skip to content

Commit

Permalink
Merge dev + #1713 phone refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mderynck committed May 24, 2023
2 parents 721c40f + 6174186 commit bd5af75
Show file tree
Hide file tree
Showing 106 changed files with 3,558 additions and 2,095 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/linting-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
comment_on_pr: false
proc_trace_chart_show: false
proc_trace_table_show: false

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.3.0
with:
Expand Down Expand Up @@ -340,9 +347,12 @@ jobs:
- name: Load engine Docker image on the nodes of the cluster
run: kind load image-archive --name=chart-testing /tmp/oncall-engine.tar

# spin up 3 engine, 3 celery, and 3 grafana pods, this will allow us to parralelize the integration tests,
# spin up 3 engine and 3 celery pods, this will allow us to parralelize the integration tests,
# and complete them much faster by using multiple test processes
# With just 1 engine/celery/grafana pod, the backend crawls to a halt when there is > 1 parallelized integration test process
# NOTE: it appears that using > 1 grafana container w/ SQLite as the database sometimes leads to failed
# grafana database migrations (this is documented in this GitHub issue
# https://github.com/bitnami/charts/issues/10905)
#
# by settings grafana.plugins to [] and configuring grafana.extraVolumeMounts we are using the locally built
# OnCall plugin rather than the latest published version
Expand All @@ -361,7 +371,7 @@ jobs:
--set oncall.twilio.authToken="${{ secrets.TWILIO_AUTH_TOKEN }}" \
--set oncall.twilio.phoneNumber="\"${{ secrets.TWILIO_PHONE_NUMBER }}"\" \
--set oncall.twilio.verifySid="${{ secrets.TWILIO_VERIFY_SID }}" \
--set grafana.replicas=3 \
--set grafana.replicas=1 \
--set grafana.image.tag=${{ matrix.grafana-image-tag }} \
--set grafana.env.GF_SECURITY_ADMIN_USER=oncall \
--set grafana.env.GF_SECURITY_ADMIN_PASSWORD=oncall \
Expand Down Expand Up @@ -400,13 +410,15 @@ jobs:
working-directory: grafana-plugin
run: ./node_modules/.bin/playwright install-deps chromium firefox webkit

- name: Await k8s pods and other resources up
uses: jupyterhub/action-k8s-await-workloads@v1
with:
workloads: "" # all
namespace: "" # default
timeout: 300
max-restarts: -1
# we could instead use the --wait flag for the helm install command above
# but there's no reason to block on that step
# instead we can let the k8s resources start up behind the scenes and do other
# setup tasks (ex. install playwright + its dependencies)
- name: Wait until k8s resources are ready
run: |
kubectl rollout status deployment/helm-testing-grafana --timeout=300s
kubectl rollout status deployment/helm-testing-oncall-engine --timeout=300s
kubectl rollout status deployment/helm-testing-oncall-celery --timeout=300s
- name: Run Integration Tests
env:
Expand All @@ -425,14 +437,14 @@ jobs:
working-directory: ./grafana-plugin
run: yarn test:integration

# always spit out the engine and celery logs, AFTER the e2e tests have completed
# can be helpful for debugging failing/flaky tests
# spit out the engine, celery, and grafana logs, if the the e2e tests have failed
# can be helpful for debugging failing tests
# GitHub Action reference: https://github.com/jupyterhub/action-k8s-namespace-report
- name: Kubernetes namespace report
uses: jupyterhub/action-k8s-namespace-report@v1
if: failure()
with:
important-workloads: "deploy/helm-testing-oncall-engine deploy/helm-testing-oncall-celery"
important-workloads: "deploy/helm-testing-oncall-engine deploy/helm-testing-oncall-celery deploy/helm-testing-grafana"

- uses: actions/upload-artifact@v3
if: failure()
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add models and framework to use different services (Phone, SMS, Verify) in Twilio depending on
the destination country code by @mderynck ([#1976](https://github.com/grafana/oncall/pull/1976))

### Changed

- Phone provider refactoring [#1713](https://github.com/grafana/oncall/pull/1713)

## v1.2.28 (2023-05-24)

### Fixed

- Improve plugin authentication by @vadimkerr ([#1995](https://github.com/grafana/oncall/pull/1995))
- Fix MultipleObjectsReturned error on webhook endpoints by @vadimkerr ([#1996](https://github.com/grafana/oncall/pull/1996))
- Remove user defined time period from "you're going oncall" mobile push by @iskhakov ([#2001](https://github.com/grafana/oncall/pull/2001))

## v1.2.27 (2023-05-23)

Expand Down
24 changes: 0 additions & 24 deletions docs/sources/alert-behavior/_index.md

This file was deleted.

64 changes: 0 additions & 64 deletions docs/sources/calendar-schedules/_index.md

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bd5af75

Please sign in to comment.