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 Tilt for local development #1396

Merged
merged 45 commits into from
Sep 7, 2023
Merged

Use Tilt for local development #1396

merged 45 commits into from
Sep 7, 2023

Conversation

bcotton
Copy link
Contributor

@bcotton bcotton commented Feb 23, 2023

What this PR does

PR adds Tilt for local development

Which issue(s) this PR fixes

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated

@bcotton bcotton requested a review from a team February 23, 2023 14:25
@CLAassistant
Copy link

CLAassistant commented Feb 23, 2023

CLA assistant check
All committers have signed the CLA.

engine/Dockerfile Outdated Show resolved Hide resolved
@@ -28,7 +28,8 @@ RUN mkdir -p /tmp/silk_profiles;
RUN chown -R 1000:2000 /tmp/silk_profiles

FROM base AS dev
RUN apt-get install -y sqlite3 default-mysql-client postgresql-client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change should be reverted prior to merging. This is a temporary workaround to this issue when building the engine docker image:

→ E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/m/mariadb-10.3/mariadb-client-core-10.3_10.3.36-0+deb10u2_arm64.deb  404  Not Found [IP: 199.232.150.132 80]
       → E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
     
     ERROR IN: [dev 1/1] RUN apt-get install -y sqlite3 default-mysql-client [redacted secret helm-testing-postgresql:postgres-password]ql-client

Build Failed: ImageBuild: executor failed running [/bin/sh -c apt-get install -y sqlite3 default-mysql-client [redacted secret helm-testing-postgresql:postgres-password]ql-client]: exit code: 100

@@ -6,3 +6,6 @@ venv
.idea
.DS_Store
.env

yarn.lock
node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding these as tilt up seems to generate them

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the pr:stale Added to a PR that has been deemed "stale". Managed by the actions/stale GitHub Action label Jul 14, 2023
@github-actions
Copy link
Contributor

This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot closed this Aug 14, 2023
@iskhakov iskhakov reopened this Aug 21, 2023
@github-actions github-actions bot removed the pr:stale Added to a PR that has been deemed "stale". Managed by the actions/stale GitHub Action label Aug 22, 2023
Comment on lines +35 to +43
If you happen to `helm uninstall helm-testing` be sure to delete all the Persistent Volume Claims, as Postgres stores
the auto-generated password on disk, and the next `helm install` will fail.

```bash
kubectl delete pvc --all
kubectl delete pv --all
```

This, of course, will delete all the PVs and PVCs also :-)
Copy link
Contributor

@iskhakov iskhakov Aug 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added hardcoded passwords for local development to avoid deletions (see here)

Tiltfile Outdated
set=extra_helm_values(),
# The values file to substitute into the chart.
values=['./helm/simple.yml',
'./helm/values-arm64.yml',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./helm/values-arm64.yml no longer exists as all of our Chart dependencies now have multi-arch support

Tiltfile Outdated
@@ -15,7 +20,25 @@ yaml = helm(

k8s_yaml(yaml)

k8s_resource(workload='grafana', port_forwards="3000:3000", resource_deps=['mariadb', 'engine', 'oncall-ui'], labels=['Grafana'])
# Generate and load the grafana deploy yaml
k8s_yaml(local("cat ./dev/cm-grafana-oncall-app-provisioning.yaml"))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is missing

@bcotton bcotton requested a review from a team August 28, 2023 03:33
Makefile Outdated Show resolved Hide resolved
Makefile Outdated

See https://github.com/grafana/oncall/pull/2751 for instructions on how to use the helm/k8s commands.
See https://github.com/grafana/oncall/pull/2751 for instructions on how to use tilt helm/k8s commands.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe remove this comment or point it to this PR

engine/Dockerfile Outdated Show resolved Hide resolved
@iskhakov iskhakov changed the title WIP - starting to get tilt running Use Tilt for local development Sep 7, 2023
@iskhakov iskhakov added the pr:no public docs Added to a PR that does not require public documentation updates label Sep 7, 2023
@iskhakov iskhakov enabled auto-merge September 7, 2023 05:00
@iskhakov iskhakov disabled auto-merge September 7, 2023 11:38
@iskhakov iskhakov merged commit 6c8344a into dev Sep 7, 2023
@iskhakov iskhakov deleted the tiltify branch September 7, 2023 11:38
brojd pushed a commit that referenced this pull request Sep 18, 2024
# What this PR does

PR adds Tilt for local development

## Which issue(s) this PR fixes

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated

---------

Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants