-
Notifications
You must be signed in to change notification settings - Fork 290
feat(ci): add build-without-store job in GitHub Actions workflow #473
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
Open
xiaguan
wants to merge
1
commit into
kvcache-ai:main
Choose a base branch
from
xiaguan:fix_store_binding
base: main
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.
Open
Changes from all commits
Commits
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 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 |
---|---|---|
|
@@ -305,15 +305,83 @@ jobs: | |
name: mooncake-wheel-ubuntu-py${{ steps.generate_tag_flags.outputs.python_version_tag }} | ||
path: mooncake-wheel/dist-py${{ steps.generate_tag_flags.outputs.python_version_tag }}/*.whl | ||
|
||
build-without-store: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.10'] | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Configure sccache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
|
||
- name: Run sccache stat for check | ||
shell: bash | ||
run: ${SCCACHE_PATH} --show-stats | ||
|
||
- name: Install dependencies and cleanup Go | ||
run: | | ||
sudo apt update -y | ||
sudo bash -x dependencies.sh -y | ||
# Remove Go since it's not needed for without-store build | ||
sudo rm -rf /usr/local/go | ||
# Remove Go from PATH in bashrc if it was added | ||
sudo sed -i '/export PATH=\$PATH:\/usr\/local\/go\/bin/d' ~/.bashrc || true | ||
shell: bash | ||
|
||
- name: Configure project without store | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DWITH_STORE=OFF -DUSE_HTTP=ON -DBUILD_UNIT_TESTS=ON -DENABLE_SCCACHE=ON -DUSE_CUDA=OFF -DUSE_NVLINK=OFF | ||
shell: bash | ||
|
||
- name: Build project without store | ||
run: | | ||
cd build | ||
make -j | ||
sudo make install | ||
shell: bash | ||
|
||
- name: Start HTTP Metadata Server | ||
run: | | ||
cd mooncake-transfer-engine/example/http-metadata-server-python | ||
pip install aiohttp | ||
python ./bootstrap_server.py & | ||
shell: bash | ||
|
||
- name: Test without store (ctest) | ||
run: | | ||
cd build | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
MC_METADATA_SERVER=http://127.0.0.1:8080/metadata ctest -V | ||
shell: bash | ||
|
||
build-docker: | ||
name: Builcd Docker Image | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build Docker image | ||
run: docker build -t mooncake-app . | ||
|
||
|
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
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 this line only related to mooncake store? I see nvlink transport uses this too?
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.
Yes. The building process of nvlink isn't controlled by this CMake.