Commit graph

169 commits

Author SHA1 Message Date
Dominik Broj
8d82b078d3
Cleanup and split tiltfile by profiles (#4691)
# What this PR does

Make it possible to select what resources are installed in Tilt by doing
`ONCALL_PROFILES=grafana,plugin,backend,tests tilt up`

## Which issue(s) this PR closes

Related to https://github.com/grafana/irm/issues/3

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-07-19 05:47:34 +00:00
Vadim Stepanov
65a794af0a
PR template: "Closes" -> "Related to" (#4693)
Make it so that you need to explicitly use the "Closes" keyword when
opening PRs (as per [this sprint retro
comment](https://miro.com/app/board/uXjVKzhhfgE=/?moveToWidget=3458764594901560846&cot=14))
2024-07-17 13:44:16 +00:00
Dominik Broj
93a7c645fd
bump nodejs version to latest stable (#4678)
# What this PR does

bump nodejs version to latest stable

## Which issue(s) this PR closes

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-07-16 11:16:23 +00:00
Dominik Broj
7da58c8eaa
run mage buildAll || true when building the plugin (#4658)
# What this PR does

`oncall-private` is using
[actions/build-sign-and-package-plugin/action.yml](https://github.com/grafana/oncall/pull/4658/files#diff-6200ac63c387869ca55bc34d1b343a96c667daef428602f910d696836cb09f84)
from the dev branch of this repo when doing the deployment. In order to
deploy new OnCall initialization which has Go backend component, we need
this action to install Go, Mage and do the `mage buildAll`. For other
branches where there are no Go files yet, it would just swallow the
error thanks to the `|| true` part

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-07-11 10:28:46 +00:00
Joey Orlando
6bb9fcef4c
update github issue product areas + label assignment 2024-06-14 12:52:14 -04:00
Joey Orlando
13f8c254fa
update product areas in issue templates 2024-06-14 12:26:41 -04:00
Joey Orlando
56683d2aa0
add release:ignore to update make docs procedure
PRs
2024-06-13 16:25:04 -04:00
Joey Orlando
9baba271b4
debugging helm release github actions workflow 2024-06-13 16:15:46 -04:00
Joey Orlando
40df01dc90
debugging helm release github actions workflow 2024-06-13 15:28:41 -04:00
Joey Orlando
76f3cd3158
debugging helm release github actions workflow 2024-06-13 15:24:20 -04:00
Joey Orlando
a1f5a69809
debugging helm release github actions workflow 2024-06-13 15:22:57 -04:00
Joey Orlando
d63c4f6c4a
debugging helm release github actions workflow 2024-06-13 15:17:54 -04:00
Joey Orlando
2d8627f1e2
debugging helm release github actions workflow 2024-06-13 15:10:15 -04:00
Joey Orlando
7cdef436a5
update token permissions for yaml update action 2024-06-13 14:46:17 -04:00
Joey Orlando
66f3ac5432
fix update make docs github actions workflow 2024-06-13 14:09:32 -04:00
Joey Orlando
5b995fdc57
fix linting 2024-06-13 14:01:32 -04:00
Joey Orlando
3133e3013d
simplify helm release github actions workflows into on release workflow 2024-06-13 13:50:37 -04:00
Joey Orlando
d032a4f909
minor github actions yml formatting 2024-06-13 13:43:21 -04:00
Joey Orlando
b411b92d1c
add on issue closed github actions workflow 2024-06-13 13:39:39 -04:00
Joey Orlando
b65b88d16a
update on release published github actions workflow 2024-06-11 13:50:03 -04:00
Joey Orlando
a4e399cf07
fix flaky tests + increase runner size when building docker image (#4502)
## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall-private/issues/2733
2024-06-11 10:53:17 -04:00
Joey Orlando
518e22705a
fix Snyk action 2024-06-10 15:52:07 -04:00
Joey Orlando
8686ee30ac
update build-engine-docker-image-and-publish-to-dockerhub actions workflow 2024-06-10 15:49:33 -04:00
Joey Orlando
49d20f1a7e
bump uwsgi to 2.0.26 + Python to 3.12.3 (#4495)
# What this PR does

- bumps `uwsgi` to latest version (`2.0.26`), which unblocks us from
bumping Python to 3.12
- bumps Python to 3.12.3
- refactor the Snyk GitHub Actions workflow to use the composable
actions for installed frontend and backend dependencies
- fixes several `AttributeError`s in our tests that went from a warning
to an error in Python 3.12 (see
https://github.com/python/cpython/issues/100690)

# Which issue(s) this PR closes

Closes #4358
Closes https://github.com/grafana/oncall/issues/4387
2024-06-10 15:33:37 -04:00
Joey Orlando
4d3e254e3a
updating some github action versions (#4490) 2024-06-07 11:24:35 -04:00
Joey Orlando
f07e2207c5
update github action versions 2024-06-07 11:09:07 -04:00
Joey Orlando
6309bf0d41
update github actions versions 2024-06-07 11:07:29 -04:00
Joey Orlando
6008963a04
update github actions workflows (#4483)
# What this PR does

Minor final updates to the new GitHub Actions workflows
2024-06-06 10:42:53 -04:00
Joey Orlando
2e1021573e
debugging push to gcom step 2024-06-05 14:41:29 -04:00
Joey Orlando
3ff8f07b65
yaml linting 2024-06-05 14:24:04 -04:00
Joey Orlando
e9e55f05b1
update build-engine-docker-image github actions workflow 2024-06-05 14:10:58 -04:00
Joey Orlando
2c0e02eba6
update build-engine-docker-image github actions workflow 2024-06-05 14:07:12 -04:00
Joey Orlando
be0b00f2a8
github actions workflows - wip 2024-06-05 13:55:12 -04:00
Joey Orlando
705bdb1d5a
github actions workflows - wip 2024-06-05 13:46:07 -04:00
Joey Orlando
cdd8354702
update on release published permissions 2024-06-05 12:33:18 -04:00
Joey Orlando
8910a9abd2
Drone -> GitHub Actions migration (#4466)
# What this PR does

Related to https://github.com/grafana/oncall-private/issues/2691
2024-06-05 12:25:53 -04:00
Joey Orlando
2881bc8fec
update install-frontend-dependencies composable github action (again) (#4404) 2024-05-27 09:47:34 -04:00
Joey Orlando
d52e821c33
update install-frontend-dependencies github action (#4402) 2024-05-27 09:18:33 -04:00
Joey Orlando
a92203e71c
remove unnecessary CI step bash command (#4397)
# What this PR does

This command is no longer necessary. Currently it doesn't seem to be
working (see screenshot 👇). Presumably `netcat-traditional` is installed
on the `ubuntu-latest-8-cores` runner.

![Screenshot 2024-05-24 at 14 42
23](https://github.com/grafana/oncall/assets/9406895/dcb80711-6168-4885-a7b8-a05e323c03bf)
2024-05-24 15:13:38 -04:00
Joey Orlando
93ab3407ff
rename settings/ci-test.py to settings/ci_test.py (#4391)
# What this PR does

Related to Drone -> GitHub Actions migration
2024-05-24 13:55:08 +00:00
Joey Orlando
9867cca5e8
Drone -> GitHub Actions migration (#4389)
# What this PR does

Related to https://github.com/grafana/oncall-private/issues/2692

This PR simply deduplicates a lot of steps in our
`linting-and-tests.yml` GitHub Actions workflow. This will make it much
easier in `grafana/oncall-private` to be able to reuse some of these
composable building blocks.
2024-05-23 14:26:07 -04:00
Joey Orlando
b6710ba89c
add "needs triage" label to newly created GH issues (#4368) 2024-05-21 12:55:11 -04:00
Joey Orlando
c46dff09d9
Splunk OnCall migration tool (#4267)
# What this PR does

Refactors the PagerDuty migration script to be a bit more generic + adds
a migration script to migrate from Splunk OnCall (VictorOps)

tldr;
```bash
❯ docker build -t oncall-migrator .
[+] Building 0.4s (10/10) FINISHED
❯ docker run --rm \
-e MIGRATING_FROM="pagerduty" \
-e MODE="plan" \
-e ONCALL_API_URL="http://localhost:8080" \
-e ONCALL_API_TOKEN="<ONCALL_API_TOKEN>" \
-e PAGERDUTY_API_TOKEN="<PAGERDUTY_API_TOKEN>" \
oncall-migrator
running pagerduty migration script...

❯ docker run --rm \
-e MIGRATING_FROM="splunk" \
-e MODE="plan" \
-e ONCALL_API_URL="http://localhost:8080" \
-e ONCALL_API_TOKEN="<ONCALL_API_TOKEN>" \
-e SPLUNK_API_ID="<SPLUNK_API_ID>" \
-e SPLUNK_API_KEY="<SPLUNK_API_KEY>" \
oncall-migrator
migrating from splunk oncall...
```

https://www.loom.com/share/a855062d436a4ef79f030e22528d8c71

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-05-14 13:53:59 +00:00
Dominik Broj
2a8240ab55
Use ops-devenv only in expensive tests (#4285)
# What this PR does

- Use cross-plugin e2e tests setup (cloning ops-devenv, gops-labels)
only on a daily runs and on dev/main branch pipelines (exclude it from
PRs so that community PRs don't rely on secrets)
- Rename "Daily e2e tests" to "Expensive e2e tests" and run them both
daily and when PRs are merged to dev/main
- Post Slack message only if e2e tests fail

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2024-04-26 17:41:08 -04:00
Matias Bordese
242ace7724
Switch to uv Python package installer/resolver (#4005)
[uv](https://github.com/astral-sh/uv) is an extremely fast Python
package installer and resolver, written in Rust, and designed as a
drop-in replacement for pip and pip-tools workflows (see
[post](https://astral.sh/blog/uv))
2024-04-26 14:30:38 +00:00
Dominik Broj
9432e9ee44
Configure cross plugin e2e tests (#4222)
# What this PR does

- Run e2e tests using ops-devenv against environment that includes
OnCall & Labels
- Add first e2e test for Labels (creating new label key and value)

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4083

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-04-25 06:25:59 +00:00
Dominik Broj
59c3420c3d
run expensive e2e tests (#4105)
# What this PR does

Fix daily e2e tests

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-03-26 21:11:09 +00:00
Dominik Broj
9ff486078f
Use Tilt CI to run e2e tests on Github workflows (#3842)
# What this PR does

- Reuse Tiltfile from local environment and use `tilt ci` to run e2e
tests on Github
- Use Playwright Docker image to get rid of installing Playwright
browsers and system dependencies
- Use ubuntu-latest-16-cores runner for e2e tests job on CI

## Which issue(s) this PR fixes

Closes https://github.com/grafana/oncall/issues/4018

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-03-22 12:29:22 +00:00
Dominik Broj
a14716551c
Fix frontend unit tests (#4045)
# What this PR does

- bring back and fix frontend unit tests


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-03-12 12:21:53 +00:00
Joey Orlando
f6b6bb053c
remove GOVERNANCE.md and MAINTAINERS.md (#4021)
# What this PR does

See internal conversation
[here](https://raintank-corp.slack.com/archives/C04JCU51NF8/p1709734053681209?thread_ts=1709116950.477509&cid=C04JCU51NF8).
tldr;
- `MAINTAINERS.md` - outdated + `.github/CODEOWNERS` contains the
same/automated up-to-date information (via references to GitHub teams
rather than individual users in a `.md` file)
- `GOVERNANCE.md` - outdated; for example, a lot of references to GitHub
discussions, which we do not use in this repo + another list of outdated
users

## Which issue(s) this PR closes

N/A

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-03-07 17:28:58 +00:00