-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Neuron SDK 2.18.0 updates --------- Co-authored-by: Nathan Mailhot <[email protected]>
- Loading branch information
1 parent
604b7c3
commit 0815eb2
Showing
47 changed files
with
1,292 additions
and
6,029 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
*Description:* | ||
|
||
*Issue #, sim, or t.corp if available:* | ||
|
||
* Link to RTD for my changes: https://github.com/aws-neuron/aws-neuron-samples-staging/YOUR_BRANCH_NAME/ | ||
|
||
* Submitter Checklist | ||
* Tested on : Neuron SDK <version>, release_version, Instance_type. | ||
* I've completely filled out the form above! | ||
**(MANDATORY) PR needs test run output | ||
|
||
* I have provided the output with expected metrics in a metrics.json file | ||
|
||
* I have attached metric.json in the PR | ||
|
||
* I have attached golden_step_loss.txt | ||
* I have added screen shot of plotted loss curve | ||
* (If applicable) I've automated a test to safegaurd my changes from regression. | ||
* (If applicable) I've posted test collateral to prove my change was effective and not harmful. | ||
* (If applicable) I've added someone from QA to the list of reviewers. Do this if you didn't make an automated test or feel it's appropriate for another reason. | ||
* (If applicable) I've reviewed the licenses of updated and new binaries and their dependencies to make sure all licenses are on the pre-approved Amazon license list. | ||
* Reviewer Checklist | ||
* I've verified the changes render correctly on RTD (link above) | ||
* I've ensured the submitter completed the form | ||
* (If appropriate) I've verified the metrics.json file provided by the submitter | ||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -1,36 +1,64 @@ | ||
name: Aggregate PRs into Staging Branch for Automated Testing | ||
name: Merge PR into Dynamic Branch on Label | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, closed] | ||
on: | ||
pull_request_target: | ||
types: [labeled, synchronize] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
merge-to-target: | ||
if: github.event.pull_request.state == 'open' && !github.event.pull_request.draft | ||
merge-to-dynamic-branch: | ||
if: github.event.label.name != 'do-not-merge' #Excludes those labeled with do-not-merge | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Merge PR into Testing Branch | ||
- name: Check PR Labels and Merge for New Commit Events | ||
if: github.event.action == 'synchronize' | ||
run: | | ||
git fetch origin | ||
git checkout -b testing origin/testing | ||
git merge ${{ github.event.pull_request.head.sha }} --no-ff --no-commit | ||
git commit -m "Merged PR #${{ github.event.pull_request.number }}" | ||
git push origin testing | ||
LABELS_JSON=$(gh pr view ${{ github.event.pull_request.number }} --json labels) | ||
LABELS=$(echo "$LABELS_JSON" | jq -r '.labels[].name') | ||
for LABEL_BRANCH in $LABELS; do | ||
# Check if the branch exists | ||
if git show-ref --verify --quiet refs/heads/$LABEL_BRANCH; then | ||
echo "Branch $LABEL_BRANCH already exists." | ||
else | ||
echo "Branch $LABEL_BRANCH does not exist, creating it." | ||
git branch $LABEL_BRANCH origin/master | ||
fi | ||
git checkout $LABEL_BRANCH | ||
# Merge PR changes into dynamic branch | ||
git merge ${{ github.event.pull_request.head.sha }} --no-ff --no-commit | ||
git commit -m "Merged PR #${{ github.event.pull_request.number }} due to new commits on labeled PR" | ||
git push origin $LABEL_BRANCH | ||
done | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Cleanup if PR Closed | ||
if: github.event.action == 'closed' | ||
- name: Merge for Labeled Event | ||
if: github.event.action == 'labeled' | ||
run: | | ||
# Add commands to reset or clean up target branch | ||
# Example: git reset --hard origin/master | ||
LABEL_BRANCH=${{ github.event.label.name }} | ||
# Check if the branch exists | ||
if git show-ref --verify --quiet refs/heads/$LABEL_BRANCH; then | ||
echo "Branch $LABEL_BRANCH already exists." | ||
else | ||
echo "Branch $LABEL_BRANCH does not exist, creating it." | ||
git branch $LABEL_BRANCH origin/master | ||
fi | ||
git checkout $LABEL_BRANCH | ||
# Merge PR changes into dynamic branch | ||
git merge ${{ github.event.pull_request.head.sha }} --no-ff --no-commit | ||
git commit -m "Merged PR #${{ github.event.pull_request.number }} due to label '$LABEL_BRANCH'" | ||
git push origin $LABEL_BRANCH |
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.