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

[YUNIKORN-2170] e2e test setup takes a lot of time #732

Closed
wants to merge 2 commits into from
Closed
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
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