-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into markm-fix-async-flow-endowment-bug-2
- Loading branch information
Showing
605 changed files
with
26,169 additions
and
24,047 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
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 |
---|---|---|
|
@@ -111,6 +111,10 @@ runs: | |
shell: bash | ||
run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/ | ||
|
||
# Before setup-node because that action runs `yarn cache dir`. See https://github.com/actions/setup-node/issues/480#issuecomment-1915448139 | ||
- run: corepack enable | ||
shell: bash | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
|
@@ -122,9 +126,6 @@ runs: | |
- uses: kenchan0130/actions-system-info@master | ||
id: system-info | ||
|
||
- run: corepack enable | ||
shell: bash | ||
|
||
- name: restore built files | ||
id: built | ||
uses: actions/cache@v4 | ||
|
@@ -181,18 +182,13 @@ runs: | |
mkdir -p node_modules/.cache/agoric | ||
date > node_modules/.cache/agoric/yarn-built | ||
- name: git dirty check | ||
working-directory: ${{ inputs.path }} | ||
shell: bash | ||
run: |- | ||
set -x | ||
# Fail if `git status` reports anything other than the following: | ||
# * an untracked endo-sha.txt from above | ||
# * work tree files that have been staged without further changes | ||
# (e.g., package.json or yarn.lock) as indicated by the Y position | ||
# in "XY PATH" being a space | ||
if [ -n "$(git status --porcelain | grep -vE '^[?][?] endo-sha.txt$|^. '; true)" ]; then | ||
git status | ||
echo "Unexpected dirty git status" 1>&2 | ||
exit 1 | ||
fi | ||
- name: Validate Git Tree Cleanliness | ||
uses: pyTooling/Actions/[email protected] | ||
with: | ||
main: | | ||
bash "$SRC/.github/actions/restore-node/check-git-status.sh" "$SRC" "$IGNORE_DIRTY_YARN_LOCK" | ||
post: | | ||
bash "$SRC/.github/actions/restore-node/check-git-status.sh" "$SRC" "$IGNORE_DIRTY_YARN_LOCK" | ||
env: | ||
SRC: ${{ inputs.path }} | ||
IGNORE_DIRTY_YARN_LOCK: ${{ steps.endo-branch.outputs.result != 'NOPE' }} |
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,28 @@ | ||
#!/bin/bash | ||
|
||
# Set verbose execution | ||
set -x | ||
|
||
# Navigate to the specified directory | ||
cd "$1" || exit $? | ||
|
||
# Get the value of IGNORE_ENDO_BRANCH | ||
ignore_dirty_yarn_lock=$2 || exit $? | ||
|
||
# Check for unexpected changes | ||
# Fail if git status detects changes | ||
changes=$(git status --porcelain) | ||
|
||
if [ "$ignore_dirty_yarn_lock" = true ]; then | ||
# When integration is requested with a specific Endo branch, ignore changes: | ||
# - package.json has a modified `"resolutions":` field, | ||
# - yarn.lock is changed because of those resolutions. | ||
# For more details, refer to https://github.com/Agoric/agoric-sdk/issues/9850. | ||
changes=$(echo "$changes" | grep -v " yarn.lock") | ||
fi | ||
|
||
if [ -n "$changes" ]; then | ||
git status | ||
echo "Unexpected dirty git status in Agoric SDK path" | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
# Github Workflows | ||
|
||
We use these for CI. Some other workflows that we aren't currently using are: | ||
|
||
* [dapp template](https://github.com/Agoric/agoric-sdk/blob/7a08c6af641c62d8b0ef4a0c35090b6216a5be34/.github/workflow-templates/test-dapp.yml#L1) | ||
* [ag-solo on xs](https://github.com/Agoric/agoric-sdk/blob/7a08c6af641c62d8b0ef4a0c35090b6216a5be34/.github/workflows/ag-solo-xs.yml.DISABLED#L1) | ||
* [Test Dapp Treasury](https://github.com/Agoric/agoric-sdk/blob/7a08c6af641c62d8b0ef4a0c35090b6216a5be34/.github/workflows/test-dapp-treasury.yml.DISABLED#L1) | ||
* [Update Hackathon branch](https://github.com/Agoric/agoric-sdk/blob/7a08c6af641c62d8b0ef4a0c35090b6216a5be34/.github/workflows/update-hackathon-branch.yml.DISABLED#L1) |
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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
name: Post Integration Test Comment on Base Branch Change | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- edited | ||
|
||
jobs: | ||
trigger: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.changes.base && github.event.pull_request.base.ref == 'master' }} | ||
steps: | ||
- name: Post a comment on the PR | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.pull_request.number, | ||
body: "Base branch is changed to master. Please re-run the integration tests by adding 'force:integration' label." | ||
}) |
Oops, something went wrong.