forked from jax-ml/jax
-
Notifications
You must be signed in to change notification settings - Fork 4
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
add copybara file and the associated workflow #100
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8e68c1f
add copybara file and the associated workflow
JehandadKhan c7e572e
enable workflow so we can test it
JehandadKhan 0ed00eb
use default copybara image
JehandadKhan f0c3ee5
use full path for the copybara command
JehandadKhan e7fae0c
copy file before the action
JehandadKhan a9ca92e
switch to using copy bara docker
JehandadKhan 9a8d802
add known hosts
JehandadKhan 02a1738
create dir for known hosts
JehandadKhan 6df09cc
add the github credential
JehandadKhan 3fd0980
add ssh key
JehandadKhan b51786c
fix typo
JehandadKhan 94ba9c3
fix typo, update runners
JehandadKhan e0e5461
move files to rocm/build dir
JehandadKhan 9763241
pin actions with ratchet
JehandadKhan d08ffd7
fix env var name, fix patch file name
JehandadKhan f8e624b
fix patch file path
JehandadKhan ddf4f56
another path fix
JehandadKhan 1ab154f
fix typo in yaml file
JehandadKhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Sync rocm/jax with jax-ml/jax | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
schedule: | ||
- cron: '0 12 * * *' # Runs every day | ||
jobs: | ||
upstream_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # ratchet:actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: | | ||
mkdir -p ~/.ssh | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
- run: | | ||
echo "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com" >> ~/.git-credentials | ||
- run: | | ||
echo "${{ secrets.SSH_KEY }}" >> ~/.ssh/id_rsa | ||
- run: | | ||
docker run -t --rm -v$HOME/.ssh:/root/.ssh -v $HOME/.git-credentials:/root/.git-credentials -v $GITHUB_WORKSPACE/build/rocm:/data -e COPYBARA_CONFIG=/data/copy.bara.sky sharelatex/copybara bash -c "git config --global user.name jaxbara; git config --global user.email [email protected]; copybara" |
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,24 @@ | ||
diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml | ||
index 03e7a0405..14f54944a 100644 | ||
--- a/.github/workflows/ci-build.yaml | ||
+++ b/.github/workflows/ci-build.yaml | ||
@@ -39,8 +39,6 @@ jobs: | ||
build: | ||
name: "build ${{ matrix.name-prefix }} (py ${{ matrix.python-version }} on ubuntu-20.04, x64=${{ matrix.enable-x64}})" | ||
runs-on: ROCM-Ubuntu | ||
- container: | ||
- image: index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04 | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
@@ -58,10 +56,6 @@ jobs: | ||
num_generated_cases: 1 | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
- - name: Image Setup | ||
- run: | | ||
- apt update | ||
- apt install -y libssl-dev | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: |
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,19 @@ | ||
# copy.bara.sky | ||
|
||
core.workflow( | ||
name = "default", | ||
origin = git.origin(url = "ssh://[email protected]/jax-ml/jax", ref = "main"), | ||
destination = git.github_pr_destination(url = "ssh://[email protected]/ROCm/jax", destination_ref = "main", pr_branch="from_upstream_${CONTEXT_REFERENCE}", | ||
title= "Sync with upstream ${COPYBARA_CONTEXT_REFERENCE}", | ||
body = "PR to bring changes from jax-ml/jax to ROCm/jax", | ||
integrates = []), | ||
destination_files = glob(["**"]), | ||
authoring = authoring.pass_thru("Default email <[email protected]>"), | ||
transformations = [ | ||
core.replace('ubuntu-20.04-16core', 'ROCM-Ubuntu',paths= glob([".github/workflows/*.yaml", ".github/workflows/*.yml"])), | ||
core.replace('linux-x86-n2-32', 'ROCM-Ubuntu',paths= glob([".github/workflows/*.yaml", ".github/workflows/*.yml"])), | ||
patch.apply( | ||
patches = ["ci-build.yaml.patch"], | ||
), | ||
], | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be best to run at 6 or 7 am.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason? I have seen them upstreaming stuff anytime of the day