-
Notifications
You must be signed in to change notification settings - Fork 12
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
chore(GHA): add action for testing against MPL HEAD #1187
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2cb1bb5
chore(GHA): add action for testing against MPL HEAD
josecorella 30cf455
format
josecorella efe69df
test
josecorella 8a325e8
pass in dafny version
josecorella 986d735
update
josecorella 85d0f69
a
josecorella 989acc2
a
josecorella 64dfa0e
?
josecorella 84abbd4
Merge branch 'main' into jocorell/gha-build-mpl-head
josecorella 3213879
update
josecorella 1ed2565
no codegen for mpl head tests
josecorella e6fd8e9
update verification
josecorella 23f37be
update
josecorella 04fb953
recurse submodules
josecorella 7030c57
use mpl head
josecorella e57354f
a
josecorella 0397353
check out mpl head for java testing
josecorella 2175591
u
josecorella 3aeef6f
enable dotnet in mpl head build
josecorella 7792af9
make mpl-head a cron job
josecorella 2f3ece3
update
josecorella 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
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 |
---|---|---|
|
@@ -13,6 +13,15 @@ on: | |
required: false | ||
default: false | ||
type: boolean | ||
mpl-version: | ||
description: "MPL version to use" | ||
required: false | ||
type: string | ||
mpl-head: | ||
description: "Running on MPL HEAD" | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
testJava: | ||
|
@@ -42,6 +51,20 @@ jobs: | |
with: | ||
dafny-version: ${{ inputs.dafny }} | ||
|
||
- name: Update MPL submodule if using MPL HEAD | ||
if: ${{ inputs.mpl-head == true }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if head and version are true? Our ci is getting complicated :) |
||
working-directory: submodules/MaterialProviders | ||
run: | | ||
git checkout main | ||
git pull | ||
git submodule update --init --recursive | ||
git rev-parse HEAD | ||
|
||
- name: Update project.properties if using MPL HEAD | ||
if: ${{ inputs.mpl-head == true }} | ||
run: | | ||
sed "s/mplDependencyJavaVersion=.*/mplDependencyJavaVersion=${{inputs.mpl-version}}/g" project.properties > project.properties2; mv project.properties2 project.properties | ||
|
||
- name: Regenerate code using smithy-dafny if necessary | ||
if: ${{ inputs.regenerate-code }} | ||
uses: ./.github/actions/polymorph_codegen | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# This workflow invokes other workflows with the latest MPL head at 14:00 UTC (7am PDT) | ||
name: CI MPL HEAD | ||
|
||
on: | ||
schedule: | ||
- cron: "00 14 * * 1-5" | ||
|
||
jobs: | ||
getVersion: | ||
# Don't run the cron builds on forks | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/dafny_version.yml | ||
getVerifyVersion: | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/dafny_verify_version.yml | ||
getMplHeadVersion: | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/mpl_head_version.yml | ||
mpl-head-ci-format: | ||
needs: getVersion | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/library_format.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head-ci-verification: | ||
needs: [getVerifyVersion, getMplHeadVersion] | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/library_dafny_verification.yml | ||
with: | ||
dafny: ${{needs.getVerifyVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-test-vector-verification: | ||
needs: [getVerifyVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/test_vector_verification.yml | ||
with: | ||
dafny: ${{needs.getVerifyVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-java: | ||
needs: [getVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/ci_test_java.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-java-test-vectors: | ||
needs: [getVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/ci_test_vector_java.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-java-examples: | ||
needs: [getVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/ci_examples_java.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-net: | ||
needs: getVersion | ||
uses: ./.github/workflows/ci_test_net.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-net-test-vectors: | ||
needs: getVersion | ||
uses: ./.github/workflows/ci_test_vector_net.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-net-examples: | ||
needs: getVersion | ||
uses: ./.github/workflows/ci_examples_net.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head: true |
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,36 @@ | ||
# This workflow reads the project.properties | ||
# into the environment variables | ||
# and then creates an output variable for `dafnyVerifyVersion ` | ||
name: MPL HEAD Version | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
version: | ||
description: "The dafny version for verify" | ||
value: ${{ jobs.getMplHeadVersion.outputs.version }} | ||
|
||
jobs: | ||
getMplHeadVersion: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.read_property.outputs.mplVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Update MPL submodule locally if requested | ||
working-directory: submodules/MaterialProviders | ||
shell: bash | ||
run: | | ||
git checkout main | ||
git pull | ||
git submodule update --init --recursive | ||
git rev-parse HEAD | ||
|
||
- name: Get the MPL version from the MPL submodule | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: "submodules/MaterialProviders/project.properties" | ||
properties: "mplVersion" |
Oops, something went wrong.
Oops, something went wrong.
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.
Is there a way to make it so you can only pass one?