-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FederatedRuntime Workflow for CI Pipeline - 301 Watermarking notebook…
… run (#1267) * FederatedRuntime Workflow for CI Pipeline - 301 Watermarking notebook run Signed-off-by: noopur <[email protected]> * Display output on screen Signed-off-by: noopur <[email protected]> * 5 Rounds Signed-off-by: noopur <[email protected]> * Removed extra ) bracket Signed-off-by: noopur <[email protected]> * Timeout of 30 min due to 5 rounds Signed-off-by: noopur <[email protected]> * End the loop after all rounds Signed-off-by: noopur <[email protected]> * Review comments incor Signed-off-by: noopur <[email protected]> * Retry the envoy fetch Signed-off-by: noopur <[email protected]> * Added invalid code just to verify negative scenario Signed-off-by: noopur <[email protected]> * Added invalid code just to verify negative scenario Signed-off-by: noopur <[email protected]> * 20m job timeout Signed-off-by: noopur <[email protected]> * Revert invalid code and stdout notebook run Signed-off-by: noopur <[email protected]> * Use markdown with stdout Signed-off-by: noopur <[email protected]> * Induced error for testing Signed-off-by: noopur <[email protected]> * Reverted error, added 10s sleep in github fetch logic Signed-off-by: noopur <[email protected]> * Code format check Signed-off-by: noopur <[email protected]> * pytest for the notebook Signed-off-by: noopur <[email protected]> * Pip install ipython ipykernel Signed-off-by: noopur <[email protected]> * Minor changes Signed-off-by: noopur <[email protected]> * Test summary step corrected for wf_functional_e2e workflow Signed-off-by: noopur <[email protected]> * 3 rounds instead of 5 Signed-off-by: noopur <[email protected]> * Job name change Signed-off-by: noopur <[email protected]> * Review comments incorp Signed-off-by: noopur <[email protected]> * Increased timeout to 30m for CI pipeline jobs Signed-off-by: noopur <[email protected]> * Increased timeout to 30m for CI pipeline jobs Signed-off-by: noopur <[email protected]> --------- Signed-off-by: noopur <[email protected]>
- Loading branch information
1 parent
9658c03
commit b8e2c70
Showing
28 changed files
with
479 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#--------------------------------------------------------------------------- | ||
# Workflow to run 301_MNIST_Watermarking notebook | ||
# Authors - Noopur, Payal Chaurasiya | ||
#--------------------------------------------------------------------------- | ||
name: Federated Runtime 301 MNIST Watermarking | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test_federated_runtime_301_watermarking_notebook: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Checkout OpenFL repository | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 2 # needed for detecting changes | ||
submodules: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies # Without this step, fx command will not work | ||
id: install_dependencies | ||
run: | | ||
python -m pip install --upgrade pip ipython ipykernel | ||
pip install . | ||
pip install -r test-requirements.txt | ||
- name: Run Federated Runtime 301 MNIST Watermarking via pytest | ||
id: run_tests | ||
run: | | ||
python -m pytest -s tests/end_to_end/test_suites/wf_federated_runtime_tests.py -k test_federated_runtime_301_watermarking | ||
echo "Federated Runtime 301 MNIST Watermarking test run completed" | ||
- name: Print test summary | ||
id: print_test_summary | ||
if: ${{ always() }} | ||
run: | | ||
export PYTHONPATH="$PYTHONPATH:." | ||
python tests/end_to_end/utils/summary_helper.py --func_name "print_federated_runtime_score" | ||
echo "Test summary printed" | ||
- name: Tar files | ||
if: ${{ always() }} # collect artifacts regardless of failures | ||
run: | | ||
tar -cvf notebook_301.tar --exclude="__pycache__" $HOME/results --ignore-failed-read | ||
echo "TAR file created" | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ always() }} # collect artifacts regardless of failures | ||
with: | ||
name: federated_runtime_301_watermarking_${{ github.run_id }} | ||
path: notebook_301.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
run_notebook: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout OpenFL repository | ||
uses: actions/[email protected] | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.