-
Notifications
You must be signed in to change notification settings - Fork 16
chore(GHA): Run Java CI testing for MPL Latest Release #1605
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
Changes from 2 commits
694f609
9d10120
b048d81
b568644
be6cb89
6a46b60
702ac56
ed6ecf1
eb6f8b9
736e387
8598979
00a9456
f71f740
a9627c0
4ba5139
0a0a3f7
bf2e657
9af7f13
364d8d3
4c0d7bb
a990c61
5d4f30c
bac6026
c04fa3f
576e13e
beff849
438730f
0241874
b024b4e
c62f6bf
dc74521
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This workflow is for testing that the latest released version | ||
# of the MPL is compatible with the current DB-ESDK Head | ||
name: Test Latest Released MPL Java with DB-ESDK HEAD | ||
|
||
on: | ||
schedule: | ||
- cron: "00 16 * * 1-5" | ||
|
||
jobs: | ||
getDBESDKDafnyVersion: | ||
# Don't run the cron builds on forks | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/dafny_version.yml | ||
getVerifyDBESDKDafnyVersion: | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/dafny_verify_version.yml | ||
getLatestReleaseMplVersion: | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/mpl_latest_release_version.yml | ||
getMplDafnyVersion: | ||
needs: getLatestReleaseMplVersion | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/mpl_head_version.yml | ||
with: | ||
mpl-head: ${{needs.getLatestReleaseMplVersion.outputs.version}} | ||
test-latest-released-mpl-java: | ||
needs: [getDafnyVersion, getLatestReleaseMplVersion, getMplDafnyVersion] | ||
uses: ./.github/workflows/dafny-interop.yml | ||
with: | ||
mpl-dafny: ${{needs.getLatestReleaseMplVersion.outputs.version}} | ||
mpl-commit: ${{needs.getMplDafnyVersion.outputs.dafnyVersion}} | ||
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. this doesn't make sense, why for the mpl commit are we supplying the dafny version? 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. Because the MPL version will be built with its own Dafny version, and we pick this up from the project properties file of the MPL. 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. Look at the first input to dafny-interop.yml. |
||
dbesdk-dafny: ${{needs.getDBESDKDafnyVersion.outputs.version}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,12 @@ on: | |
default: main | ||
type: string | ||
outputs: | ||
version: | ||
description: "The dafny version for verify" | ||
mplVersion: | ||
description: "The MPL version" | ||
value: ${{ jobs.getMplHeadVersion.outputs.version }} | ||
dafnyVersion: | ||
description: "The dafny version for the MPL" | ||
value: ${{ jobs.getMplHeadDafnyVersion.outputs.version }} | ||
|
||
jobs: | ||
getMplHeadVersion: | ||
|
@@ -40,3 +43,27 @@ jobs: | |
with: | ||
path: "submodules/MaterialProviders/project.properties" | ||
properties: "mplVersion" | ||
|
||
getMplHeadDafnyVersion: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
version: ${{ steps.read_property.outputs.dafnyVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Update MPL submodule locally if requested | ||
working-directory: submodules/MaterialProviders | ||
shell: bash | ||
run: | | ||
git checkout ${{inputs.mpl-head}} | ||
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: "dafnyVersion" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This workflow reads the project.properties | ||
# into the environment variables | ||
# and then creates an output variable for `mplDependencyJavaLatestReleaseVersionTag` | ||
name: Latest Released MPL Version | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
version: | ||
description: "The latest released MPL version" | ||
value: ${{ jobs.getMPLVersion.outputs.version }} | ||
|
||
jobs: | ||
getMPLVersion: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
version: ${{ steps.read_property.outputs.mplDependencyJavaLatestReleaseVersionTag }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Read version from Properties-file | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: "./project.properties" | ||
properties: "mplDependencyJavaLatestReleaseVersionTag" |
Uh oh!
There was an error while loading. Please reload this page.