Skip to content

Commit 9da8dec

Browse files
authored
Use self hosted runner for resgroup test (#192)
* Use self hosted runner * Add clean ../gpdb-devops folder before move * Add cleanup work folder for test
1 parent 839b8b5 commit 9da8dec

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build-gpdb.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
{"test":"ic-resgroup",
111111
"make_configs":["src/test/isolation2:installcheck-resgroup"],
112112
"enable_cgroups":true,
113-
"runs_on":"ubuntu-20.04"
113+
"runs_on":"self-hosted"
114114
},
115115
{"test":"ic-contrib",
116116
"install_target":true,
@@ -714,6 +714,13 @@ jobs:
714714
run: |
715715
echo "Timestamp from output: ${{ needs.build.outputs.build_timestamp }}"
716716
717+
- name: Cleanup build folder
718+
run: |
719+
ls -la ./
720+
rm -rf ./* || true
721+
rm -rf ./.??* || true
722+
ls -la ./
723+
717724
- name: Checkout CI Build/Test Scripts
718725
uses: actions/checkout@v4
719726
with:
@@ -725,6 +732,9 @@ jobs:
725732
- name: Move gpdb-devops directory
726733
run: |
727734
set -ex pipefail
735+
736+
rm -rf "${GITHUB_WORKSPACE}"/../gpdb-devops
737+
728738
if ! mv "${GITHUB_WORKSPACE}"/gpdb-devops "${GITHUB_WORKSPACE}"/..; then
729739
echo "::error::Container initialization failed"
730740
exit 1

0 commit comments

Comments
 (0)