From e976b55a5c2a83f4f2ab1221ea228c9b8737db4f Mon Sep 17 00:00:00 2001 From: Simeon Wong Date: Thu, 14 Nov 2024 20:32:09 -0500 Subject: [PATCH 1/5] delete ip logs... WARNING UNTESTED! --- 02_activities/assignments/assignment.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/02_activities/assignments/assignment.sh b/02_activities/assignments/assignment.sh index d81e9a77b..001291867 100644 --- a/02_activities/assignments/assignment.sh +++ b/02_activities/assignments/assignment.sh @@ -33,6 +33,7 @@ unzip rawdata.zip # 6. Repeat the above step for user logs and event logs # 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs +rf -rf ./data # 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed From ea20676d33161a6f4d0fcd3c4f7aa5360f0f4309 Mon Sep 17 00:00:00 2001 From: Simeon Wong Date: Thu, 14 Nov 2024 20:55:44 -0500 Subject: [PATCH 2/5] initialize README file with company name --- 02_activities/assignments/assignment.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/02_activities/assignments/assignment.sh b/02_activities/assignments/assignment.sh index 001291867..f2bfd22bd 100644 --- a/02_activities/assignments/assignment.sh +++ b/02_activities/assignments/assignment.sh @@ -11,6 +11,7 @@ set -x mkdir analysis output touch README.md +echo "# Project Name: DSI Consulting Inc." > README.md touch analysis/main.py # download client data From 31888211d5cf9799efad991356b60fadbb55d359 Mon Sep 17 00:00:00 2001 From: Param Date: Fri, 24 Jul 2026 22:44:25 -0400 Subject: [PATCH 3/5] hello here --- 02_activities/assignments/assignment.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/02_activities/assignments/assignment.sh b/02_activities/assignments/assignment.sh index 4b48cec8b..efe2aacbc 100644 --- a/02_activities/assignments/assignment.sh +++ b/02_activities/assignments/assignment.sh @@ -28,22 +28,27 @@ unzip -q rawdata.zip # Complete assignment here # 1. Create a directory named data - +mkdir data # 2. Move the ./rawdata directory to ./data/raw (eg. move it into ./data and rename it to raw) - +mv ./rawdata ./data/raw # 3. List the contents of the ./data/raw directory - +ls -la ./data/raw # 4. Create the directory ./data/processed, +mkdir -p ./data/processed/server_logs +mkdir -p ./data/processed/user_logs +mkdir -p ./data/processed/event_logs # then create the following sub-directories within it: server_logs, user_logs, and event_logs # 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs - +cp ./data/raw/*server*.log ./data/processed/server_logs # 6. Repeat the above step for user logs and event logs - +cp ./data/raw/*user*.log ./data/processed/user_logs +cp ./data/raw/*event*.log ./data/processed/event_logs # 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs - +rm./data/raw/*ipaddr*.log +rm ./data/processed/user_logs/*ipaddr*.log # 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed - +find ./data/processed -type f > ./data/inventory.txt ########################################### From 6545dc5c1190c48b77ffc333d9c1f57e840ffbf2 Mon Sep 17 00:00:00 2001 From: Param Date: Thu, 30 Jul 2026 13:20:11 -0400 Subject: [PATCH 4/5] Update assignment.sh --- 02_activities/assignments/assignment.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02_activities/assignments/assignment.sh b/02_activities/assignments/assignment.sh index ac2ed25da..1cbf9d13a 100644 --- a/02_activities/assignments/assignment.sh +++ b/02_activities/assignments/assignment.sh @@ -46,7 +46,8 @@ cp ./data/raw/*server*.log ./data/processed/server_logs cp ./data/raw/*user*.log ./data/processed/user_logs cp ./data/raw/*event*.log ./data/processed/event_logs # 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs - +rm -rf ./data/raw/*ipaddr* +rm -rf ./data/processed/user_logs/*ipaddr* # 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed find ./data/processed -type f > ./data/inventory.txt From 05819c79b9a4724cd7017bba76f2340bd593c115 Mon Sep 17 00:00:00 2001 From: Paramdeep Singh <42006951+itsparamdeep@users.noreply.github.com> Date: Thu, 30 Jul 2026 21:49:35 -0400 Subject: [PATCH 5/5] Update autograder.yml --- .github/workflows/autograder.yml | 72 +++++++++++++++++--------------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/.github/workflows/autograder.yml b/.github/workflows/autograder.yml index f41be7eed..69b2953be 100644 --- a/.github/workflows/autograder.yml +++ b/.github/workflows/autograder.yml @@ -1,40 +1,44 @@ -name: Assignment autograder -on: - pull_request: - branches: - - main - types: [opened, synchronize, reopened] - + +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + push: + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + jobs: - autograder: - name: Assignment autograder - if: startsWith(github.head_ref, 'assignment') && github.repository_owner != 'UofT-DSI' + # Single deploy job since we're just deploying + deploy: + if: | + (github.repository == 'UofT-DSI/shell' && github.ref == 'refs/heads/main') || + (github.repository != 'UofT-DSI/shell' && github.ref == 'refs/heads/githubpages') + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v5 - - name: Setup working directory for script - run: | - UUID=$(uuidgen) - echo "UUID=$UUID" >> $GITHUB_ENV - mkdir /tmp/$UUID - cp $GITHUB_WORKSPACE/02_activities/assignments/assignment.sh /tmp/$UUID - - name: Run assignment script - run: | - bash -c "bash assignment.sh 2>&1 | tee /tmp/${{ env.UUID }}_output.txt" - working-directory: /tmp/${{ env.UUID }} - - name: Grade responses - id: grade - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO_OWNER: ${{ github.repository_owner }} - REPO_NAME: ${{ github.event.repository.name }} - PR_NUMBER: ${{ github.event.pull_request.number }} - REPO_BRANCH: ${{ github.event.pull_request.head.ref }} - WORKING_DIR: /tmp/${{ env.UUID }} - run: | - wget -O /tmp/autograder.py https://github.com/UofT-DSI/shell/raw/refs/heads/main/03_instructional_team/autograder/autograder.py - uv run --python 3.12 --with pandas,tabulate,requests /tmp/autograder.py + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './03_instructional_team/githubpages' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4