-
Notifications
You must be signed in to change notification settings - Fork 48
Test RT build on arc runner #559
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
Draft
samreenx
wants to merge
64
commits into
open-edge-platform:3.0
Choose a base branch
from
samreenx:patch-1
base: 3.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 18 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
f95e77e
Update check-files.yml
masoodihuzaifa a95d48c
Update lint.yml
masoodihuzaifa 8637e43
Update lint.yml
masoodihuzaifa 1611c62
Update lint.yml
masoodihuzaifa 7b0050e
Update lint.yml
masoodihuzaifa 419bc30
Update lint.yml
masoodihuzaifa 90f3219
Update lint.yml
masoodihuzaifa fd3c5dc
Update lint.yml
masoodihuzaifa 3db3cc0
Update lint.yml
masoodihuzaifa 2f3771f
Update check-entangled-specs.yml
masoodihuzaifa 9c609a9
Create rt-test.yml
samreenx 3f064d4
Update rt-test.yml
samreenx 66c4c4b
Update rt-test.yml
samreenx 35f1a1b
Update rt-test.yml
samreenx 5fb691a
Merge branch '3.0' into patch-1
samreenx 4813900
Update rt-test.yml
samreenx 51e2a23
Update lint.yml
samreenx 10a4ceb
Update rt-test.yml
samreenx 88bdf92
Update rt-test.yml
samreenx c8b47df
Update rt-test.yml
samreenx 96cb883
Update rt-test.yml
samreenx 7180515
Update rt-test.yml
masoodihuzaifa 6349b21
Update rt-test.yml
samreenx 722d3b1
Update rt-test.yml
samreenx eae4747
Update rt-test.yml
masoodihuzaifa 6f62065
Update rt-test.yml
samreenx 3699d18
Update rt-test.yml
samreenx 34f326c
Update rt-test.yml
samreenx 3f42207
Create non-rt-test.yml
samreenx da31980
Update non-rt-test.yml
samreenx 98b837e
Update non-rt-test.yml
samreenx ae3c466
Update non-rt-test.yml
samreenx f10be2d
Update rt-test.yml
samreenx a5e1b99
Update non-rt-test.yml
samreenx c422c93
Update non-rt-test.yml
samreenx 1b4715a
Create iso-test.yml
samreenx 178ceb7
Update iso-test.yml
samreenx 3a0a354
Update iso-test.yml
samreenx 41d03b1
Update iso-test.yml
samreenx 0f63123
Update iso-test.yml
samreenx 9cd09ed
Create dv-test.yml
samreenx a467d32
Update dv-test.yml
samreenx 9856d83
Update dv-test.yml
samreenx 7fa9bb7
Update dv-test.yml
samreenx b76d1a3
Update dv-test.yml
samreenx 7c2ff3a
Create bootkit.yml
samreenx a158a51
Update bootkit.yml
samreenx 14175b8
Update bootkit.yml
samreenx 5e3efc5
Create minOS.yml
samreenx 3b7b77d
Update bootkit.yml
samreenx fceb2d8
Update bootkit.yml
samreenx d68a0e0
Update bootkit.yml
samreenx 3f2a887
Update bootkit.yml
samreenx 409b18d
Update bootkit.yml
samreenx 88e9a02
Update bootkit.yml
samreenx 0ca77d5
Update bootkit.yml
samreenx e07f14d
Update bootkit.yml
samreenx 10a9455
Update bootkit.yml
samreenx 58a3319
Update bootkit.yml
samreenx effb3e6
Update bootkit.yml
samreenx 4985cd0
Update minOS.yml
samreenx 9f71f97
Update minOS.yml
samreenx dfd2b92
Update minOS.yml
samreenx ac378a0
Create full-test.yml
samreenx 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,179 @@ | ||
| name: Test RT image Build | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [3.0] | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
|
|
||
| env: | ||
| RELEASE_NAME: Test TiberOS RT | ||
| CODE_REPO_URL: open-edge-platform/edge-microvisor-toolkit | ||
| CODE_REPO_NAME: edge-microvisor-toolkit | ||
| CODE_REPO_BRANCH: "3.0" | ||
| CHROOT_DIR: $(BUILD_DIR)/worker/chroot | ||
|
|
||
| jobs: | ||
| image_build: | ||
| name: Image Build | ||
| runs-on: arc-runner-set | ||
| timeout-minutes: 1440 # extend timeout from default 6 hour to 24 hour | ||
| environment: production | ||
| outputs: | ||
| base_url: ${{ steps.compress-image.outputs.base_url }} | ||
| upload_dir: ${{ steps.compress-image.outputs.upload_dir }} | ||
| images: ${{ steps.compress-image.outputs.images }} | ||
| st_images: ${{ steps.compress-image.outputs.st_images }} | ||
| raw_image_sizes: ${{ steps.build-rt-image.outputs.raw_image_sizes }} | ||
| datetime_as_version: ${{ steps.set-version.outputs.datetime_as_version }} | ||
| release_name: ${{ steps.compress-image.outputs.release_name }} | ||
| artifactory_url: ${{ steps.compress-image.outputs.artifactory_url }} | ||
| artifactory_path: ${{ steps.compress-image.outputs.artifactory_path }} | ||
| kernel_version: ${{ steps.compress-image.outputs.kernel_version }} | ||
|
|
||
| steps: | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: ${{ env.CODE_REPO_URL }} | ||
| ref: ${{ env.CODE_REPO_BRANCH }} | ||
| path: ${{ env.CODE_REPO_NAME }} | ||
|
|
||
| - name: Set DATETIME_AS_VERSION | ||
| id: set-version | ||
| run: | | ||
| DATETIME_AS_VERSION=$(date +'%Y%m%d.%H%M') | ||
| echo "datetime_as_version=$DATETIME_AS_VERSION" >> "$GITHUB_OUTPUT" | ||
| echo "DATETIME_AS_VERSION=$DATETIME_AS_VERSION" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Install required packages | ||
| run: | | ||
| #!/bin/bash | ||
| set -e | ||
| echo "Installing required packages..." | ||
| sudo -E apt-get update | ||
| sudo -E apt-get -y install make pip | ||
| shell: bash | ||
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
|
|
||
|
|
||
| - name: setup go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: 1.23.0 | ||
|
|
||
| - name: Parse spec files | ||
| continue-on-error: true | ||
| run: | | ||
| cd ${{ env.CODE_REPO_NAME }} | ||
|
|
||
| python3 -m pip install -r toolkit/scripts/requirements.txt | ||
| python3 toolkit/scripts/spec_parser.py | ||
|
|
||
| - name: Build packages | ||
| run: | | ||
| cd ${{ env.CODE_REPO_NAME }} | ||
| pushd toolkit | ||
| sudo make -j16 toolchain \ | ||
| REBUILD_TOOLS=y \ | ||
| VALIDATE_TOOLCHAIN_GPG=n \ | ||
| DAILY_BUILD_REPO=./resources/manifests/package/development.repo \ | ||
| LOG_LEVEL=debug | ||
| popd | ||
|
|
||
| - name: Build rt image (quick build) | ||
| id: build-rt-image | ||
| run: | | ||
| cd ${{ env.CODE_REPO_NAME }}/toolkit | ||
| sudo make image \ | ||
| REBUILD_PACKAGES=n \ | ||
| REBUILD_TOOLS=y \ | ||
| VALIDATE_TOOLCHAIN_GPG=n \ | ||
| DATETIME_AS_VERSION="${DATETIME_AS_VERSION}" \ | ||
| LICENSE_CHECK_MODE=warn \ | ||
| CONFIG_FILE=./imageconfigs/edge-image-rt.json \ | ||
| EMT_DISTRIB_SPECS=y \ | ||
| REPO_LIST+=./resources/manifests/package/development.repo \ | ||
| DAILY_BUILD_REPO=./resources/manifests/package/development.repo | ||
|
|
||
| # check for output image to determine the results | ||
| shopt -s nullglob | ||
| raw_files=(../out/images/edge-image-rt/*.raw) | ||
| raw_image_sizes=$(du -sh ../out/images/edge-image-rt/*.raw | tr '\n' ' ') | ||
| echo "raw_image_sizes=$raw_image_sizes" >> "$GITHUB_OUTPUT" | ||
| if [ ${#raw_files[@]} -eq 0 ]; then | ||
| echo "No .raw files were found in the output directory." | ||
| exit 1 | ||
| else | ||
| echo "Found .raw files in the output directory:" | ||
| printf '%s\n' "${raw_files[@]}" | ||
| fi | ||
|
|
||
| - name: Build rt dev image | ||
| id: build-rt-dev-image | ||
| run: | | ||
| cd ${{ env.CODE_REPO_NAME }}/toolkit | ||
| sudo make image \ | ||
| REBUILD_PACKAGES=n \ | ||
| REBUILD_TOOLS=y \ | ||
| EMT_DISTRIB_SPECS=y \ | ||
| VALIDATE_TOOLCHAIN_GPG=n \ | ||
| DATETIME_AS_VERSION="${DATETIME_AS_VERSION}" \ | ||
| CONFIG_FILE=./imageconfigs/edge-image-rt-dev.json \ | ||
| DAILY_BUILD_REPO=./resources/manifests/package/development.repo \ | ||
| REPO_LIST+=./resources/manifests/package/development.repo | ||
|
|
||
|
|
||
| - name: compress image | ||
| id: compress-image | ||
| if: steps.build-rt-image.outcome == 'success' | ||
| run: | | ||
| cd ${{ env.CODE_REPO_NAME }} | ||
|
|
||
| UPLOAD_DIR=$DATETIME_AS_VERSION | ||
| echo "upload_dir=$UPLOAD_DIR" >> "$GITHUB_OUTPUT" | ||
| cp -r out/images/edge-image-rt/ "$UPLOAD_DIR" | ||
| cp -r out/images/edge-image-rt-dev/* "$UPLOAD_DIR" | ||
|
|
||
| KERNEL_VERSION=$(jq '.[] | .[] | select(.Name=="kernel-rt") | .Version' ./build/imagegen/edge-image-rt/image_pkg_manifest.json) | ||
| echo "kernel_version=$KERNEL_VERSION" >> "$GITHUB_OUTPUT" | ||
| echo "KERNEL_VERSION=$KERNEL_VERSION" | ||
|
|
||
|
|
||
| find "$UPLOAD_DIR" -type f -exec gzip {} \; | ||
| for dir in build/imagegen/edge-image-rt build/imagegen/edge-image-rt-dev; | ||
| do | ||
| json_files=("$dir"/*.json) | ||
| if [ -e "${json_files[0]}" ]; then | ||
| for file in "${json_files[@]}"; | ||
| do | ||
| filename=$(basename "$file") | ||
| # Extract the directory name to use as a prefix | ||
| dirname=$(basename "$dir") | ||
| cp "$file" "$UPLOAD_DIR/$dirname-$filename" | ||
| echo "$file $UPLOAD_DIR/$dirname-$filename" | ||
| done | ||
| else | ||
| echo "No .json files found in $dir" | ||
| fi | ||
| done | ||
| cp build/spec_parser.json "$UPLOAD_DIR/" | true | ||
| find "$UPLOAD_DIR" -type f -exec sh -c 'sha256sum "{}" > "{}".sha256sum' \; | ||
| # echo "build commit: $GITHUB_SHA" >> "$UPLOAD_DIR/build_ID" | ||
| commit_id=$(git rev-parse HEAD) | ||
| echo "build commit: $commit_id" >> "${UPLOAD_DIR}/build_ID" | ||
| echo "Github build ID: $GITHUB_RUN_ID" >> "$UPLOAD_DIR/build_ID" | ||
| IMAGES=$(find "$UPLOAD_DIR" -name *.raw.* | xargs -n 1 basename | tr '\n' ',') | ||
| STABLE_IMAGES=$(echo "$IMAGES" | tr ',' '\n' | grep -v 'edge-readonly-rt-dev-' | tr '\n' ',') | ||
| STABLE_IMAGES="${STABLE_IMAGES%,}" | ||
| ST_IMAGES=$(echo "$IMAGES" | tr ',' '\n' | grep 'edge-readonly-rt-dev-*' | tr '\n' ',') | ||
| ST_IMAGES="${ST_IMAGES%,}" | ||
| echo "images=$STABLE_IMAGES" >> "$GITHUB_OUTPUT" | ||
| echo "st_images=$ST_IMAGES" >> "$GITHUB_OUTPUT" | ||
| echo "release_name=${{ env.RELEASE_NAME }}" >> "$GITHUB_OUTPUT" | ||
| echo "artifactory_url=test-art-url" >> "$GITHUB_OUTPUT" | ||
| echo "artifactory_path=test-art-path" >> "$GITHUB_OUTPUT" | ||
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.
Check warning
Code scanning / zizmor
does not set persist-credentials: false Warning