Skip to content

Commit da6f111

Browse files
Fix/dagster round 2 (RonaldHensbergen#117)
* Fixing Dagster user-code being unhealthy * Test-case T1 succeeds! * Updating the test checklist * Updated test with correct Dockerfile * Linting issues (why a file I didn't change?)
1 parent 3ed5b93 commit da6f111

6 files changed

Lines changed: 20 additions & 16 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ body:
2323
label: Severity
2424
description: How severely does this bug affect you?
2525
options:
26-
- Critical (system unusable / data loss)
27-
- High (major feature broken)
28-
- Medium (feature partially broken)
29-
- Low (minor inconvenience)
26+
- Critical (system unusable / data loss)
27+
- High (major feature broken)
28+
- Medium (feature partially broken)
29+
- Low (minor inconvenience)
3030
validations:
3131
required: true
3232

docs/mvp-test/checklist-signoff.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Run tests in this order:
2020

2121
## T1 Bootstrap proof
2222

23-
- [ ] **T1.1** Fresh bootstrap
23+
- [x] **T1.1** Fresh bootstrap
2424
Clone repo, copy env/config, render profile, and start stack from docs only.
2525

26-
- [ ] **T1.2** Preflight/doctor
26+
- [x] **T1.2** Preflight/doctor
2727
Verify Docker, Compose, ports, env vars, disk, and memory before startup.
2828

29-
- [ ] **T1.3** Container health
29+
- [x] **T1.3** Container health
3030
Confirm Dagster, Postgres, and Superset all become healthy within timeout.
3131

3232
---
@@ -169,7 +169,7 @@ Run tests in this order:
169169

170170
Minimum required before calling the profile proven:
171171

172-
- [ ] **T1.1–T1.3**
172+
- [x] **T1.1–T1.3**
173173
- [ ] **T2.1–T2.3**
174174
- [ ] **T3.1–T3.3**
175175
- [ ] **T4.1–T4.5**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY workdirs/dagster /opt/dagster/app
2121
# Run dagster code server on port 4000
2222
EXPOSE 4000
2323

24-
HEALTHCHECK --timeout=1s --start-period=3s --interval=3s --retries=20 CMD ["dagster", "api", "grpc-health-check", "-p", "4000"]
24+
HEALTHCHECK --timeout=10s --start-period=5s --interval=10s --retries=20 CMD ["dagster", "api", "grpc-health-check", "-p", "4000"]
2525

2626
# CMD allows this to be overridden from run launchers or executors to execute runs and steps
2727
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4000", "-f", "/opt/dagster/app/definitions.py"]

images/dagster/workspace.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load_from:
22
- grpc_server:
3-
host: dagster-user-code
4-
port: 4000
5-
location_name: example_user_code
3+
host: dagster-user-code
4+
port: 4000
5+
location_name: example_user_code

modules/orchestration/dagster/module.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ spec:
130130
user-code:
131131
build:
132132
context: ../../../
133-
dockerfile: images/dagster/Dockerfile-user-code
133+
dockerfile: images/dagster/Dockerfile.user-code
134134
image: local/dagster-user-code:custom
135135
restart: always
136136
hostname: dagster-user-code
@@ -160,7 +160,7 @@ spec:
160160
- "${config.webPort}:3000"
161161
volumes:
162162
- /var/run/docker.sock:/var/run/docker.sock
163-
- /tmp/io_manager_storage:/tmp/io_manager_storage
163+
- dagster-io-manager-storage:/tmp/io_manager_storage
164164
environment:
165165
DAGSTER_HOME: "${config.homeDir}"
166166
DAGSTER_POSTGRES_HOST: "${bindings.run-storage.host}"
@@ -195,11 +195,15 @@ spec:
195195
- dagster-daemon run
196196
volumes:
197197
- /var/run/docker.sock:/var/run/docker.sock
198-
- /tmp/io_manager_storage:/tmp/io_manager_storage
198+
- dagster-io-manager-storage:/tmp/io_manager_storage
199199
environment:
200200
DAGSTER_HOME: "${config.homeDir}"
201201
DAGSTER_POSTGRES_HOST: "${bindings.run-storage.host}"
202202
DAGSTER_POSTGRES_PORT: "${bindings.run-storage.port}"
203203
DAGSTER_POSTGRES_DB: "${bindings.run-storage.database}"
204204
DAGSTER_POSTGRES_USER: "${bindings.run-storage.username}"
205205
DAGSTER_POSTGRES_PASSWORD: "${bindings.run-storage.password}"
206+
207+
volumes:
208+
dagster-io-manager-storage:
209+
enabledFrom: spec.config.storage.enabled

tests/test_render_example_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_example_profile_validates_plans_and_renders_compose(self):
4242
self.assertIn("dagster-user-code", compose["services"])
4343
self.assertEqual(
4444
compose["services"]["dagster-user-code"]["build"]["dockerfile"],
45-
"images/dagster/Dockerfile-user-code",
45+
"images/dagster/Dockerfile.user-code",
4646
)
4747
self.assertEqual(
4848
compose["services"]["dagster-dagster-webserver"]["depends_on"]["dagster-user-code"]["condition"],

0 commit comments

Comments
 (0)