Hannah#15
Conversation
Sync from HackYourAssignment/c55-data-week-5 (Grade workflow fix)
This comment has been minimized.
This comment has been minimized.
|
✅ Image pushed to ACR
Browse the registry in the Azure Portal: https://portal.azure.com/#@hackyourfuture.nl/resource/subscriptions/1120c89d-2a5f-4a15-a582-2ea34f0bb5c3/resourceGroups/rg-hyf-data/providers/Microsoft.ContainerRegistry/registries/hyfregistry/repository Task 7 verification: your Dockerfile built and pushed cleanly from commit |
This comment has been minimized.
This comment has been minimized.
|
✅ Image pushed to ACR
Browse the registry in the Azure Portal: https://portal.azure.com/#@hackyourfuture.nl/resource/subscriptions/1120c89d-2a5f-4a15-a582-2ea34f0bb5c3/resourceGroups/rg-hyf-data/providers/Microsoft.ContainerRegistry/registries/hyfregistry/repository Task 7 verification: your Dockerfile built and pushed cleanly from commit |
📝 HackYourFuture auto gradeAssignment Score: 83 / 100 ✅Status: ✅ Passed Test Details |
|
✅ Image pushed to ACR
Browse the registry in the Azure Portal: https://portal.azure.com/#@hackyourfuture.nl/resource/subscriptions/1120c89d-2a5f-4a15-a582-2ea34f0bb5c3/resourceGroups/rg-hyf-data/providers/Microsoft.ContainerRegistry/registries/hyfregistry/repository Task 7 verification: your Dockerfile built and pushed cleanly from commit |
| enriched = join_customers(sales_clean, customers_raw) | ||
|
|
||
| reports = build_reports(enriched) | ||
| write_outputs(reports, OUTPUT_DIR) |
There was a problem hiding this comment.
OUTPUT_DIR and GITHUB_USERNAME are not defined anywhere, this will cause an error.
You already have output_dir defined, use that instead
| @@ -55,6 +81,22 @@ def run() -> None: | |||
| save_results(records, output_dir) | |||
| logger.info("pipeline complete") | |||
| import logging | ||
| import os | ||
| from pathlib import Path | ||
| DATA_DIR = Path("data") |
There was a problem hiding this comment.
Imports must come before other module-level code — ruff check src flags this as E402. Move the from src... imports (lines 16–19) up with the other imports at the top, before DATA_DIR = Path("data").
Run ruff check src locally before pushing as there are several lint errors that would fail your CI lint step.
| - name: Build image | ||
| run: echo "TODO implement this step" | ||
| run: docker build -t hannahwn-pipeline:${{ github.sha }} . | ||
| - name: Azure login |
There was a problem hiding this comment.
These Azure login/push steps aren't needed as GitHub blocks secrets on pull_request workflows from forks.
Please remove lines 39–48 and keep only: checkout → install → lint → format → test → docker build.
| assert len(content.strip().splitlines()) >= 2 | ||
|
|
||
|
|
||
| class TestDownloadInputs: |
There was a problem hiding this comment.
This test calls real Azure Blob Storage and fails without credentials (ClientAuthenticationError). CI runs pytest -q with no Azure login, so this breaks the pipeline. You can remove this test or mock the Azure client with monkeypatch so the test doesn't need real credentials.
There was a problem hiding this comment.
To fix:
- Log in with your HYF account:
az login --use-device-code --tenant 07a14c4e-d88c-42f7-83b3-13af7e57ff3d - Push your image locally and take a screenshot of the successful push
- Save it as
assets/acr_push_week5.png(exact filename required by the autograder)
|
Grade: 3/5 Good effort! The core Week 5 functions are implemented well. The Dockerfile is correct, dependencies are pinned, and CI includes the required lint/test/build steps. However, the submission doesn't work cleanly end-to-end yet, you can check comments for more |
No description provided.