Skip to content

Commit

Permalink
[YUNIKORN-2170] e2e test setup takes a lot of time
Browse files Browse the repository at this point in the history
  • Loading branch information
brandboat committed Nov 22, 2023
1 parent c5a82ac commit a3ad185
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ jobs:
echo "vm.nr_hugepages = 1024" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
sudo sysctl -a | grep vm.nr_hugepages
- name: Cache and Restore e2e required tools
id: cache
uses: actions/cache@v3
with:
path: |
tools
key: ${{ runner.os }}-e2e-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-e2e-
- run: ./scripts/run-e2e-tests.sh -a "test" -n "yk8s" -v "kindest/node:${KIND_NODE_IMAGE}" ${KIND_EXTRA_ARGS}
env:
KIND_NODE_IMAGE: ${{ matrix.k8s }}
Expand Down
13 changes: 9 additions & 4 deletions scripts/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
# See the License for the specific language governing permissions and
#limitations under the License.

HELM=tools/helm
KIND=tools/kind
KUBECTL=tools/kubectl
TOOLS_DIRECTORY=tools
HELM=$TOOLS_DIRECTORY/helm
KIND=$TOOLS_DIRECTORY/kind
KUBECTL=$TOOLS_DIRECTORY/kubectl
GO="${GO:-go}"
export GO

Expand Down Expand Up @@ -71,7 +72,11 @@ function check_docker() {
}

function install_tools() {
make tools
if [ -d "$TOOLS_DIRECTORY" ]; then
echo "tools directory exists. Skipping make tools."
else
make tools
fi
}

function install_cluster() {
Expand Down

0 comments on commit a3ad185

Please sign in to comment.