Skip to content

Commit bd5af75

Browse files
committed
Merge dev + #1713 phone refactoring
2 parents 721c40f + 6174186 commit bd5af75

File tree

106 files changed

+3558
-2095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+3558
-2095
lines changed

.github/workflows/linting-and-tests.yml

+24-12
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ jobs:
287287
- name: Checkout
288288
uses: actions/checkout@v3
289289

290+
- name: Collect Workflow Telemetry
291+
uses: runforesight/workflow-telemetry-action@v1
292+
with:
293+
comment_on_pr: false
294+
proc_trace_chart_show: false
295+
proc_trace_table_show: false
296+
290297
- name: Create k8s Kind Cluster
291298
uses: helm/[email protected]
292299
with:
@@ -340,9 +347,12 @@ jobs:
340347
- name: Load engine Docker image on the nodes of the cluster
341348
run: kind load image-archive --name=chart-testing /tmp/oncall-engine.tar
342349

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

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

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

437449
- uses: actions/upload-artifact@v3
438450
if: failure()

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Add models and framework to use different services (Phone, SMS, Verify) in Twilio depending on
1313
the destination country code by @mderynck ([#1976](https://github.com/grafana/oncall/pull/1976))
1414

15+
### Changed
16+
17+
- Phone provider refactoring [#1713](https://github.com/grafana/oncall/pull/1713)
18+
19+
## v1.2.28 (2023-05-24)
20+
1521
### Fixed
1622

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

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

docs/sources/alert-behavior/_index.md

-24
This file was deleted.

docs/sources/calendar-schedules/_index.md

-64
This file was deleted.

docs/sources/calendar-schedules/web-schedule/calendar-export/index.md

-74
This file was deleted.

docs/sources/calendar-schedules/web-schedule/create-schedule/index.md

-77
This file was deleted.

0 commit comments

Comments
 (0)