Skip to content

Commit d180628

Browse files
authored
Merge pull request #2 from HackYourFuture/fix/instructions-link-and-task-numbers
Fix dead instructions link, align task numbers to the chapter, scope az login to HYF tenant
2 parents 728cb5f + 9c49e06 commit d180628

6 files changed

Lines changed: 28 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Task 5: Build a CI workflow that runs on pull requests and pushes to main.
1+
# Task 6: Build a CI workflow that runs on pull requests and pushes to main.
22
#
33
# See the assignment chapter for the required steps and commands.
44
# Fill in the TODO values below.

.hyf/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ if [[ -f "$screenshot" ]]; then
149149
fail "assets/acr_push_week5.png exists but looks empty (${size} bytes)"
150150
fi
151151
else
152-
fail "assets/acr_push_week5.png missing (Task 6 deliverable)"
152+
fail "assets/acr_push_week5.png missing (Task 7 deliverable)"
153153
fi
154154
((score += l7))
155155
pass "Level 7: ACR screenshot ($l7/10 pts)"

AI_ASSIST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AI Assist Report
22

3-
> Task 7: Fill in all three sections below. Your reflection should be specific —
3+
> Task 8: Fill in all three sections below. Your reflection should be specific —
44
> describe exactly what you asked, what the AI returned, and what you changed.
55
> "The AI fixed it" is not enough detail.
66

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Task 3: Write a cache-friendly Dockerfile.
1+
# Task 4: Write a cache-friendly Dockerfile.
22
#
33
# Requirements (in order):
44
# 1. Use python:3.11-slim as the base image.

README.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,40 @@ You have a Python pipeline. Your job is to make it reproducible, containerized,
88
week5-container-assignment/
99
├── .github/
1010
│ └── workflows/
11-
│ └── ci.yml ← Task 5: CI workflow (fill in the TODO steps)
11+
│ └── ci.yml ← Task 6: CI workflow (fill in the TODO steps)
1212
├── src/
13-
│ └── pipeline.py ← Task 1 & 4: pipeline logic and env-var config
13+
│ └── pipeline.py ← Task 1 & 5: pipeline logic and env-var config
1414
├── tests/
15-
│ └── test_pipeline.py ← tests that must pass before you touch the Dockerfile
16-
├── Dockerfile ← Task 3: write a cache-friendly Dockerfile
15+
│ └── test_pipeline.py ← Task 3: provided tests; make them pass
16+
├── Dockerfile ← Task 4: write a cache-friendly Dockerfile
1717
├── requirements.txt ← Task 2: pin all dependencies
18-
└── AI_ASSIST.md ← Task 7: document your LLM usage
18+
└── AI_ASSIST.md ← Task 8: document your LLM usage
1919
```
2020

2121
## Open in Codespaces
2222

2323
> 💻 [Open in GitHub Codespaces](https://github.com/codespaces/new/HackYourFuture/data-assignment-week-5)
2424
25-
Docker and the Azure CLI are pre-installed. Run `az login --use-device-code` before Task 6.
25+
Docker and the Azure CLI are pre-installed. Before Task 7, sign in with your **HackYourFuture** account (not a personal Azure account), targeting the HackYourFuture tenant:
26+
27+
```bash
28+
az login --use-device-code --tenant 07a14c4e-d88c-42f7-83b3-13af7e57ff3d
29+
```
2630

2731
## Tasks at a glance
2832

33+
> These task numbers match the Week 5 assignment chapter in your HackYourFuture Notion curriculum.
34+
2935
| Task | What you do |
3036
|---|---|
31-
| 1: Choose a Pipeline | The starter `src/pipeline.py` has three functions with `raise NotImplementedError`. Implement them so the tests pass. |
32-
| 2: Pin Dependencies | Fill in `requirements.txt` with pinned versions (`package==version`). |
33-
| 3: Dockerfile | Complete the `Dockerfile` following the TODO comments. |
34-
| 4: Configuration | `get_config()` must read `API_KEY` from the environment and raise a clear error if it is missing. |
35-
| 5: CI Workflow | Replace the `echo "TODO"` steps in `ci.yml` with real commands. |
36-
| 6: Push to ACR | Add Azure login + ACR push steps to your workflow; screenshot the result. |
37-
| 7: AI Report | Fill in `AI_ASSIST.md` with your LLM prompt, the suggestion, and what you changed. |
37+
| 1: Choose a Pipeline | The starter `src/pipeline.py` has three functions with `raise NotImplementedError`. Implement them so the provided tests pass. |
38+
| 2: Define Dependencies | Fill in `requirements.txt` with pinned versions (`package==version`). |
39+
| 3: Write Tests | The starter ships a full test suite in `tests/test_pipeline.py`. Make your Task 1 implementation pass it: `API_KEY=test pytest -q`. |
40+
| 4: Write a Dockerfile | Complete the `Dockerfile` following the TODO comments. |
41+
| 5: Add Configuration | `get_config()` must read `API_KEY` from the environment and raise a clear error if it is missing. |
42+
| 6: Build a CI Workflow | Replace the `echo "TODO"` steps in `ci.yml` with real commands. |
43+
| 7: Push to ACR | Add Azure login + ACR push steps to your workflow; screenshot the result. |
44+
| 8: AI Report | Fill in `AI_ASSIST.md` with your LLM prompt, the suggestion, and what you changed. |
3845

3946
## How to run locally
4047

@@ -44,7 +51,7 @@ pip install -r requirements.txt
4451
API_KEY=test pytest -q
4552
```
4653

47-
## How to run in Docker (after completing Task 3)
54+
## How to run in Docker (after completing Task 4)
4855

4956
```bash
5057
docker build -t my-pipeline:1.0 .
@@ -58,4 +65,4 @@ docker run --rm -e API_KEY=test my-pipeline:1.0
5865
3. Push and open a Pull Request against `main`.
5966
4. Share the PR URL with your teacher.
6067

61-
See the [full assignment instructions](https://hackyourfuture.github.io/datatrack/week-5/assignment) for Task 6 (ACR push) and the grading rubric.
68+
See the [full assignment instructions](https://www.notion.so/hackyourfuture/Assignment-Containerize-and-Ship-2af50f64ffc9819ab20cde5165c0069e) in your HackYourFuture Notion curriculum for the Task 7 (ACR push) steps.

src/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Tasks:
55
- Task 1: confirm this script runs locally before touching the Dockerfile.
6-
- Task 4: read all configuration from environment variables (no hardcoded values).
6+
- Task 5: read all configuration from environment variables (no hardcoded values).
77
88
Replace every `raise NotImplementedError` below with a real implementation.
99
"""
@@ -24,7 +24,7 @@ def get_config() -> dict:
2424
2525
Raise RuntimeError with a clear message if a required variable is missing.
2626
"""
27-
raise NotImplementedError("Task 4: read API_KEY and OUTPUT_DIR from the environment")
27+
raise NotImplementedError("Task 5: read API_KEY and OUTPUT_DIR from the environment")
2828

2929

3030
def fetch_data(api_key: str) -> list[dict]:

0 commit comments

Comments
 (0)