Skip to content

Commit

Permalink
Merge branch 'main' into ivyAdaptiveMaxPool1D
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishticode authored Feb 22, 2024
2 parents 1a2cc6b + 5a4b8bd commit c57cc06
Show file tree
Hide file tree
Showing 441 changed files with 13,475 additions and 4,489 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/sub-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 🍰 Sub-Task
about: Reserve a sub-task from a ToDo list issue
title: "<Function_Name>"
labels: Sub Task, hacktoberfest
labels: Sub Task
assignees: ''

---
2 changes: 1 addition & 1 deletion .github/workflows/array-api-intelligent-tests-pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: array-api-intelligent-tests-pr
on:
pull_request:
types: [ labeled, opened, synchronize, reopened, review_requested ]
types: [opened, synchronize, reopened, review_requested ]

permissions:
actions: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️Binaries
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: unifyai/binaries
token: ${{ secrets.IVY_BRANCH_TOKEN }}
path: binaries
persist-credentials: false

- name: Add Tag to Binaries
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerfile-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "main" ]
pull_request:
types: [labeled, review_requested]
types: [review_requested]
branches: [ "main" ]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/intelligent-tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: intelligent-tests-pr
on:
workflow_dispatch:
pull_request:
types: [labeled, opened, synchronize, reopened, review_requested]
types: [opened, synchronize, reopened, review_requested]

permissions:
actions: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/intelligent-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
run: |
cd ivy
set -o pipefail
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' 'false' ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
continue-on-error: true

- name: Upload test results
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/manual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
default: false
required: false

tracer:
description: 'Tracer Testing :'
default: false
required: false

permissions:
actions: read

Expand All @@ -40,7 +45,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand All @@ -59,7 +64,7 @@ jobs:
pip3 install pymongo
cd ivy
python3 scripts/setup_tests/setup_tests.py ${{ github.event.inputs.test }}
python3 scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' ${{ github.event.inputs.gpu }} ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
python3 scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' ${{ github.event.inputs.gpu }} ${{ github.run_id }} 'false' ${{ github.event.inputs.tracer }} ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand All @@ -81,7 +86,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand All @@ -99,9 +104,9 @@ jobs:
run: |
pip3 install pymongo
cd ivy
pip3 install -e .
sudo pip3 install -e .
python scripts/setup_tests/setup_tests.py "${{ github.event.inputs.test }}"
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.event.inputs.version}} 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.event.inputs.version}} 'false' ${{ github.run_id }} 'false' ${{ github.event.inputs.tracer }} ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
- name: Run CPU Tests
run: |
cd ivy
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'true' ${{ steps.jobs.outputs.html_url }}
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'true' 'false' ${{ steps.jobs.outputs.html_url }}
- name: Run GPU Tests
run: |
cd ivy
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'true' ${{ github.run_id }} 'true' ${{ steps.jobs.outputs.html_url }}
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'true' ${{ github.run_id }} 'true' 'false' ${{ steps.jobs.outputs.html_url }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

publish-binaries:
name: Publish Binaries
uses: unifyai/workflows/.github/workflows/binaries.yml@main
uses: ./.github/workflows/binaries.yml
secrets: inherit

deploy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand All @@ -64,7 +64,7 @@ jobs:
cd ivy
python scripts/setup_tests/filter_tests.py ${{ matrix.branch }}
set -o pipefail
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' 'false' ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
continue-on-error: true

- name: Upload test results
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/run-failing-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Run Failing Tests
on:
workflow_dispatch:
inputs:
priority:
description: 'Priority:'
default: true
required: false

permissions:
actions: read
jobs:
display_test_results:
if: ${{ always() }}
runs-on: ubuntu-latest
needs:
- run_tests

steps:
- name: Download all test results
uses: actions/download-artifact@v3

- name: Combined Test Results
run: |
find . -name "test_results_*.txt" -exec cat {} + > combined_test_results.txt
echo "Test results summary:"
cat combined_test_results.txt
run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
121, 122, 123, 124, 125, 126, 127, 128 ]
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v3
with:
path: ivy
persist-credentials: false
submodules: "recursive"
fetch-depth: 1

- name: Get Job URL
uses: Tiryoh/gha-jobid-action@v0
id: jobs
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: ${{ github.job }}

- name: Setup Tests
run: |
pip3 install pymongo
cd ivy
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python scripts/setup_tests/setup_failing_tests.py ${{ github.event.inputs.priority }} ${{ matrix.branch }}
- name: Run Tests
run: |
cd ivy
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/test-docstrings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test-docstrings
on:
push:
pull_request:
types: [labeled, opened, synchronize, reopened, review_requested]
types: [opened, synchronize, reopened, review_requested]
workflow_dispatch:
jobs:
run-docstring-tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-frontend-jax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-frontend-numpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-frontend-tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-frontend-torch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-ivy-cron-gpu.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: test-ivy-cron-gpu
on:
workflow_dispatch:
schedule:
- cron: '25 * * * *'
# schedule:
# - cron: '25 * * * *'
permissions:
actions: read
concurrency:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
cd ivy
export TAG="cp310-cp310-manylinux_2_17_x86_64"
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand All @@ -74,8 +74,8 @@ jobs:
run: |
pip3 install pymongo
cd ivy
python3 scripts/setup_tests/cron_tests.py ${{ github.run_number }} true
python3 scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'true' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
python3 scripts/setup_tests/cron_tests.py ${{ github.run_number }} true false
python3 scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'true' ${{ github.run_id }} 'false' 'false' ${{ steps.jobs.outputs.html_url }}
stop-vm:
needs: run-gpu-tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-ivy-cron-multi-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand All @@ -38,7 +38,7 @@ jobs:
cd ivy
pip3 install pymongo
python scripts/setup_tests/cron_tests_multi_version.py ${{ github.run_number }}
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'true' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'true' 'false' ${{ github.run_id }} 'false' 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-ivy-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand All @@ -37,8 +37,8 @@ jobs:
run: |
cd ivy
pip3 install pymongo
python scripts/setup_tests/cron_tests.py ${{ github.run_number }} false
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
python scripts/setup_tests/cron_tests.py ${{ github.run_number }} false false
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-experimental-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-experimental-nn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-nn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-stateful.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
Expand Down
Loading

0 comments on commit c57cc06

Please sign in to comment.