From 77a756bb57e30da86d688a6e3b4970d01710447d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Ma=C5=82ota-W=C3=B3jcik?= <59281144+outofforest@users.noreply.github.com> Date: Sun, 22 Dec 2024 12:09:21 +0100 Subject: [PATCH] Use self-hosted runner (#331) --- .github/workflows/ci.yml | 2 +- hash/asm_test.go | 9 ++------- space/compare/asm_test.go | 3 --- space/space_test.go | 10 +++++----- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f4df59..13c6faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: "test/go", ] - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout uses: actions/checkout@v4 diff --git a/hash/asm_test.go b/hash/asm_test.go index a7ad451..d9e8a08 100644 --- a/hash/asm_test.go +++ b/hash/asm_test.go @@ -1,8 +1,3 @@ -// GitHub actions run on machines not supporting AVX-512 instructions. -//go:build nogithub - -//nolint:lll - package hash import ( @@ -44,7 +39,7 @@ var ( ) func TestBlake3OneMessage(t *testing.T) { - for i := range len(zeroMatrix) { + for i := range zeroMatrix { matrix := zeroMatrix matrix[i] = on @@ -93,7 +88,7 @@ func TestBlake3Zeros(t *testing.T) { } func TestLastHashIsStored(t *testing.T) { - for i := range len(zeroMatrix) { + for i := range zeroMatrix { matrix := zeroMatrix matrix[i] = on diff --git a/space/compare/asm_test.go b/space/compare/asm_test.go index c65fee9..8ae2bec 100644 --- a/space/compare/asm_test.go +++ b/space/compare/asm_test.go @@ -1,6 +1,3 @@ -// GitHub actions run on machines not supporting AVX-512 instructions. -//go:build nogithub - package compare import ( diff --git a/space/space_test.go b/space/space_test.go index efc88e0..d2a1f2b 100644 --- a/space/space_test.go +++ b/space/space_test.go @@ -1,6 +1,3 @@ -// GitHub actions run on machines not supporting AVX-512 instructions. -//go:build nogithub - package space import ( @@ -2294,7 +2291,7 @@ func TestSpaceDeallocation(t *testing.T) { const numOfItems = 1000 appState := state.NewForTest(t, stateSize) - tx := pipeline.NewTransactionRequestFactory().New() + txFactory := pipeline.NewTransactionRequestFactory() s := NewSpaceTest[uint64, uint64](t, appState, nil, false) @@ -2306,8 +2303,11 @@ func TestSpaceDeallocation(t *testing.T) { Key: i, KeyHash: types.KeyHash(i + 1), }, StageData) + + tx := txFactory.New() requireT.NoError(s.SetKey(tx, v, i)) - for i := range v.storeRequest.PointersToStore { + requireT.NotNil(tx.StoreRequest) + for i := range tx.StoreRequest.PointersToStore { if v.storeRequest.Store[i].Pointer.PersistentAddress != 0 { continue }