Skip to content

Mareh A.#13

Open
mareh-aboghanem wants to merge 9 commits into
HackYourAssignment:mainfrom
mareh-aboghanem:main
Open

Mareh A.#13
mareh-aboghanem wants to merge 9 commits into
HackYourAssignment:mainfrom
mareh-aboghanem:main

Conversation

@mareh-aboghanem

Copy link
Copy Markdown

I have completed and verified all core pipeline, testing, and Azure container deployment tasks, but did not have time to finish task 8, the AI assistant part due to the submission deadline.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Image pushed to ACR

hyfregistry.azurecr.io/mareh-aboghanem-pipeline:cd3ddba2795aedc5641c2e2331f1e71bcf496963

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 cd3ddba.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Image pushed to ACR

hyfregistry.azurecr.io/mareh-aboghanem-pipeline:83929a7f53f8d91207b40b376bfbc572d68d025d

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 83929a7.

GitHub withholds AZURE_CREDENTIALS from pull_request runs from forks,
causing azure/login to fail. The if-guard skips the Azure/ACR steps on
fork PRs so CI stays green; the central Grade ACR push workflow on
main handles the actual push.
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

📝 HackYourFuture auto grade

Assignment Score: 93 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 60
🧪 The auto grade is experimental and still being improved

Test Details

=== Week 5 Autograder ===
  PASS: Level 1: required files (15/15 pts)
  PASS: Dockerfile uses python:3.11-slim base image
  PASS: Dockerfile copies requirements before source (cache-friendly)
  PASS: Dockerfile has a CMD instruction
  PASS: Level 2: Dockerfile (15/15 pts)
  PASS: tests/test_pipeline.py has 12 test functions (≥2 required)
  PASS: tests/test_pipeline.py has no NotImplementedError stubs remaining
  PASS: Level 3: unit tests (10/10 pts)
  PASS: requirements.txt has 4 pinned package(s)
  PASS: requirements.txt pins satisfied (no uv.lock needed)
  PASS: Level 4: pinned dependencies (10/10 pts)
  PASS: ci.yml triggers on pull_request
  PASS: ci.yml triggers on push to main
  PASS: ci.yml runs ruff check (lint)
  PASS: ci.yml runs ruff format (format check)
  PASS: ci.yml runs pytest
  PASS: ci.yml runs docker build
  PASS: Level 5: CI workflow (20/20 pts)
  PASS: pipeline.py reads config from os.environ/os.getenv
  FAIL: pipeline.py still contains NotImplementedError
  PASS: Level 6: env-var config (10/15 pts)
  PASS: assets/acr_push_week5.png present and non-trivial (37751 bytes)
  PASS: Level 7: ACR screenshot (10/10 pts)
  PASS: AI_ASSIST.md has all three required sections
  FAIL: AI_ASSIST.md still contains TODO placeholders or is too short (681 chars)
  PASS: Level 8: AI report (3/5 pts)
  PASS: .gitignore correctly excludes __pycache__/, *.pyc, and .env

Score: 93 / 100  (passing: 60)  pass=true

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Image pushed to ACR

hyfregistry.azurecr.io/mareh-aboghanem-pipeline:01020a43762a0ab4a0b4a469531f8763f85176c9

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 01020a4.

@danlaudk

danlaudk commented Jun 7, 2026

Copy link
Copy Markdown

Hi, I'm not the reviewer on this PR, but I don't think it's ok to skip the AI assist documentation. I would consider it in the learning process to be as essential as "where did your data come from" (in the data process).

Comment thread requirements.txt
# ruff==
#
# Add your pinned dependencies below:
azure-storage-blob

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you forgot to add a version against some of the packages

Comment thread src/pipeline.py
output_dir = Path(config["output_dir"])
save_results(records, output_dir)
logger.info("pipeline complete")
download_inputs(DATA_DIR)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Week 5's starter run() only needs: config(), fetch(), save() and the final log, after that you run the full Week 4 pipeline, which needs ACCOUNT_URL and SOURCE_CONTAINER. docker run will fail at download_inputs() because the image doesn't include data/ and has no Azure credentials.

Either stop after save_results for Week 5, or COPY data/ into the Dockerfile

Comment thread src/pipeline.py
from src.transform import join_customers
from src.report import build_reports, write_outputs

GITHUB_USERNAME = "mareh-aboghanem"

@qiraahmad qiraahmad Jun 17, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

better to use os.getenv("GITHUB_USERNAME")

Comment thread tests/test_pipeline.py
from src.pipeline import fetch_data, get_config, save_results

import pandas as pd
from src.pipeline import fetch_data, get_config, save_results, clean_sales

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Import clean_sales from src.clean, not src.pipeline. It only works now because pipeline happens to import it at module level.

Comment thread Dockerfile
COPY requirements.txt .
# TODO: install dependencies

RUN pip install -r requirements.txt

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please test docker run after docker build as the image currently only copies src/, not data/.

  1. RUN pip install --no-cache-dir -r requirements.txt (smaller image)
  2. COPY data/ ./data/ (your run() reads from Path("data"); without this, the container has no CSV files and no Azure login to download them)

Without this, the run will fail at download_inputs(). Try: docker run --rm -e API_KEY=test

@qiraahmad

Copy link
Copy Markdown

Good job, especially with the CI with fork guards and Week 4 continuity. However, AI_ASSIST.md completely unfilled Task 8 not submitted, and look into the comments above. 3/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants