-
Notifications
You must be signed in to change notification settings - Fork 40
feat: support external source URL for build testing #1179
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 all commits
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 |
|---|---|---|
|
|
@@ -25,4 +25,5 @@ jobs: | |
| secrets: inherit | ||
| with: | ||
| repo: 'https://github.com/zopencommunity/metaport.git' | ||
| use_pr_source_url: 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. In Severity: medium 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| use_prbranch_as_build_branch: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,8 @@ Required: | |
| stable build URL (either git or tarball). | ||
|
|
||
| Optional: | ||
| ZOPEN_SOURCE_URL If set, use this as ZOPEN_URL before checking | ||
|
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. In Severity: low 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| ZOPEN_DEV_URL or ZOPEN_STABLE_URL. | ||
| ZOPEN_EXTRA_CFLAGS C compiler flags to append to CFLAGS (defaults to ''). | ||
| ZOPEN_EXTRA_CPPFLAGS C,C++ pre-processor flags to append to CPPFLAGS. | ||
| (defaults to '') | ||
|
|
@@ -628,10 +630,14 @@ checkEnv() | |
| printError "Building from dev, but ZOPEN_DEV_DEPS not specified" | ||
| fi | ||
| ZOPEN_DEPS="${ZOPEN_DEV_DEPS}" | ||
| if [ -z "${ZOPEN_DEV_URL}" ]; then | ||
| printError "Building from dev, but ZOPEN_DEV_URL not specified" | ||
| if [ ! -z "${ZOPEN_SOURCE_URL}" ]; then | ||
| ZOPEN_URL="${ZOPEN_SOURCE_URL}" | ||
| else | ||
| if [ -z "${ZOPEN_DEV_URL}" ]; then | ||
| printError "Building from dev, but ZOPEN_DEV_URL not specified" | ||
| fi | ||
| ZOPEN_URL="${ZOPEN_DEV_URL}" | ||
| fi | ||
| ZOPEN_URL="${ZOPEN_DEV_URL}" | ||
| if [ ! -z "${ZOPEN_DEV_BRANCH}" ]; then | ||
| export ZOPEN_GIT_BRANCH="${ZOPEN_DEV_BRANCH}" | ||
| fi | ||
|
|
@@ -653,10 +659,14 @@ checkEnv() | |
| printError "Building from stable, but ZOPEN_STABLE_DEPS not specified" | ||
| fi | ||
| ZOPEN_DEPS="${ZOPEN_STABLE_DEPS}" | ||
| if [ -z "${ZOPEN_STABLE_URL}" ]; then | ||
| printError "Building from stable, but ZOPEN_STABLE_URL not specified" | ||
| if [ ! -z "${ZOPEN_SOURCE_URL}" ]; then | ||
| ZOPEN_URL="${ZOPEN_SOURCE_URL}" | ||
| else | ||
| if [ -z "${ZOPEN_STABLE_URL}" ]; then | ||
| printError "Building from stable, but ZOPEN_STABLE_URL not specified" | ||
| fi | ||
| ZOPEN_URL="${ZOPEN_STABLE_URL}" | ||
| fi | ||
| ZOPEN_URL="${ZOPEN_STABLE_URL}" | ||
| if [ ! -z "${ZOPEN_STABLE_BRANCH}" ]; then | ||
| export ZOPEN_GIT_BRANCH="${ZOPEN_STABLE_BRANCH}" | ||
| fi | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
In
.github/workflows/build_and_test.yml:70, theuse_pr_source_urlpath assumessteps.request.outputs.datacontains valid PR JSON and immediately runsfromJson(...). For non-PR callers (e.g.,workflow_dispatchor otherworkflow_callusers), the request route may be empty andfromJson/field access can fail.Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.