Skip to content
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

feat: lvm2 thin support #834

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-11-08T10:54:12Z by kres latest.
# Generated on 2023-11-20T10:44:06Z by kres latest.

name: default
concurrency:
Expand Down Expand Up @@ -54,17 +54,6 @@ jobs:
platforms: linux/arm64
driver: remote
endpoint: tcp://localhost:1234
- name: Save PR number
if: github.event_name == 'pull_request' && always()
run: |
echo ${{ github.event.number }} > pr-number.txt
- name: Upload PR number
if: github.event_name == 'pull_request' && always()
uses: actions/upload-artifact@v3
with:
name: pr-number
path: pr-number.txt
retention-days: "1"
- name: Build
run: |
make
Expand Down Expand Up @@ -99,7 +88,7 @@ jobs:
repo: context.repo.repo,
})

return resp.data.labels
return resp.data.labels.map(label => label.name)
- name: release-notes
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand All @@ -114,7 +103,7 @@ jobs:
runs-on:
- self-hosted
- pkgs
if: contains(needs.default.outputs.labels, 'integration/reproducibility')
if: contains(fromJSON(needs.default.outputs.labels), 'integration/reproducibility')
needs:
- default
services:
Expand Down
28 changes: 4 additions & 24 deletions .github/workflows/slack-notify.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-11-08T10:54:12Z by kres latest.
# Generated on 2023-11-20T10:44:06Z by kres latest.

name: slack-notify
"on":
Expand All @@ -17,33 +17,13 @@ jobs:
- generic
if: github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Download PR artifact
if: github.event.workflow_run.event == 'pull_request'
uses: actions/github-script@v6
with:
script: |-
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "pr-number"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr-number.zip`, Buffer.from(download.data));
- name: Get PR number
id: get-pr-number
if: github.event.workflow_run.event == 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
run: |
unzip pr-number.zip
echo pull_request_number=$(cat pr-number.txt) >> $GITHUB_OUTPUT
echo pull_request_number=$(gh pr view -R ${{ github.repository }} ${{ github.event.workflow_run.head_repository.owner.login }}:${{ github.event.workflow_run.head_branch }} --json number --jq .number) >> $GITHUB_OUTPUT
- name: Slack Notify
uses: slackapi/slack-github-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion lvm2/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig

./configure \
--with-thin=none \
--with-thin=internal \
--with-cache=none \
--disable-udev-systemd-background-jobs \
--with-systemdsystemunitdir=/dev/null \
Expand Down