Skip to content

Commit

Permalink
Use self-hosted runner (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
outofforest authored Dec 22, 2024
1 parent 8ad0853 commit 77a756b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
"test/go",
]

runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
9 changes: 2 additions & 7 deletions hash/asm_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// GitHub actions run on machines not supporting AVX-512 instructions.
//go:build nogithub

//nolint:lll

package hash

import (
Expand Down Expand Up @@ -44,7 +39,7 @@ var (
)

func TestBlake3OneMessage(t *testing.T) {
for i := range len(zeroMatrix) {
for i := range zeroMatrix {
matrix := zeroMatrix
matrix[i] = on

Expand Down Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions space/compare/asm_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// GitHub actions run on machines not supporting AVX-512 instructions.
//go:build nogithub

package compare

import (
Expand Down
10 changes: 5 additions & 5 deletions space/space_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// GitHub actions run on machines not supporting AVX-512 instructions.
//go:build nogithub

package space

import (
Expand Down Expand Up @@ -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)

Expand All @@ -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
}
Expand Down

0 comments on commit 77a756b

Please sign in to comment.