Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Streamlining Refactor #28748

Merged
merged 28 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d612cd6
temporary ivy checkout fix
Sam-Armstrong May 14, 2024
a68c522
update conftest to speed up hypothesis tests
Sam-Armstrong May 14, 2024
af1ac5d
remove 'intelligent tests' on push/pr
Sam-Armstrong May 14, 2024
ac74f3f
Merge branch 'main' into ci
Sam-Armstrong May 14, 2024
0bc89a3
remove recursive cloning from test-docstrings
Sam-Armstrong May 14, 2024
25a99ec
add initial workflow to run tests that are likely relevant to a given…
Sam-Armstrong May 14, 2024
55bce45
test
Sam-Armstrong May 14, 2024
0712612
🤖 Lint code
ivy-branch May 14, 2024
5727e1f
create the git diff + only run on push/pr to main
Sam-Armstrong May 14, 2024
180b91f
correct diff naming
Sam-Armstrong May 14, 2024
3b4e569
bug fix
Sam-Armstrong May 14, 2024
3f2c564
remove lint bot
Sam-Armstrong May 15, 2024
0dc8e21
remove pr compliance check
Sam-Armstrong May 15, 2024
70d789e
only run test-docstrings on push
Sam-Armstrong May 15, 2024
130ec84
simplify lint job name
Sam-Armstrong May 15, 2024
f539ea3
update duplicate workflow to check for duplicated frontend functions
Sam-Armstrong May 15, 2024
00bd06a
bug fix
Sam-Armstrong May 15, 2024
75576fb
bug fix
Sam-Armstrong May 15, 2024
d813d15
only run test-docstrings on push to main
Sam-Armstrong May 15, 2024
840ec31
debug
Sam-Armstrong May 15, 2024
1a69abb
test: add a duplicate frontend
Sam-Armstrong May 15, 2024
b388357
debug
Sam-Armstrong May 15, 2024
ca091f7
remove the duplicate fn
Sam-Armstrong May 15, 2024
229a46e
lint
Sam-Armstrong May 15, 2024
081a06f
🤖 Lint code
ivy-branch May 15, 2024
ef1f823
lint
Sam-Armstrong May 15, 2024
be4d7ca
minor improvements
Sam-Armstrong May 15, 2024
b84ce82
Merge branch 'main' into ci
Sam-Armstrong May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 0 additions & 85 deletions .github/workflows/array-api-intelligent-tests-pr.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/array-api-intelligent-tests.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/commit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
actions: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v3
with:
path: ivy
persist-credentials: false
fetch-depth: 100

- name: Fetch Commit Changes
id: fetch_changes
run: |
cd ivy
git fetch origin main
git diff origin/main HEAD --output="commit-diff.txt"

- name: Install ivy and fetch binaries
run: |
cd ivy
sudo pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
cd ..

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

- name: Run Tests
id: tests
run: |
pip3 install pymongo
cd ivy
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest python3 scripts/run_tests_from_diff.py
continue-on-error: true

- name: Check on failures
if: steps.tests.outcome != 'success'
run: exit 1
44 changes: 22 additions & 22 deletions .github/workflows/duplication.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: duplicate-test-check
name: duplicates
on:
push:
branches:
main
pull_request:
permissions:
actions: read
jobs:
run-check:
if: contains(github.event.pull_request.labels.*.name, 'Exhaustive CI') || contains(github.event.pull_request.labels.*.name, 'Ivy API Experimental')
runs-on: ubuntu-latest
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v2
with:
path: ivy
persist-credentials: false
submodules: "recursive"
fetch-depth: 100
test-duplicates:
runs-on: ubuntu-latest
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v3
with:
path: ivy
persist-credentials: false
fetch-depth: 100

- name: Check Duplicate Function
id: tests
run: |
cd ivy
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest python3 scripts/duplicate.py
continue-on-error: true

- name: Check Duplicate Function
id: tests
run: |
cd ivy
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest python3 scripts/duplicate.py
continue-on-error: true

- name: Check on failures
if: steps.tests.outcome != 'success'
run: exit 1
- name: Check on failures
if: steps.tests.outcome != 'success'
run: exit 1
Loading
Loading