Fix: Prints should always include new lines (#102795)

* CI: Allow Bench conversion to fail

We shouldn't mark PRs and commits as X if they fail to convert logs with Bench.

* Fix: Prints should always include new lines

* fix: remove unused import
This commit is contained in:
Mariell Hoversholm
2025-03-27 12:27:53 +01:00
committed by GitHub
parent 9094c73e33
commit e1e1d3fd9f
15 changed files with 40 additions and 32 deletions
@@ -279,7 +279,7 @@ func (r *xormRepositoryImpl) Get(ctx context.Context, query annotations.ItemQuer
params = append(params, query.OrgID)
if query.AnnotationID != 0 {
// fmt.Print("annotation query")
// fmt.Println("annotation query")
sql.WriteString(` AND a.id = ?`)
params = append(params, query.AnnotationID)
}
+1 -1
View File
@@ -92,7 +92,7 @@ func TestFeatureToggleFiles(t *testing.T) {
}
} else if item.DeletionTimestamp == nil {
item.DeletionTimestamp = &created
fmt.Printf("mark feature as deleted")
t.Log("mark feature as deleted")
}
current.Items = append(current.Items, item)
}
@@ -1,7 +1,6 @@
package test
import (
"fmt"
"testing"
"time"
@@ -56,7 +55,7 @@ func setupTestDB(t *testing.T) *xorm.Engine {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})
@@ -35,7 +35,7 @@ func TestMigrations(t *testing.T) {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})
@@ -92,7 +92,7 @@ func TestIntegrationMigrationLock(t *testing.T) {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})
@@ -203,7 +203,7 @@ func TestMigratorLocking(t *testing.T) {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})
@@ -250,7 +250,7 @@ func TestDatabaseLocking(t *testing.T) {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})
@@ -1,7 +1,6 @@
package test
import (
"fmt"
"testing"
"github.com/stretchr/testify/require"
@@ -28,7 +27,7 @@ func setupTestDB(t *testing.T) *xorm.Engine {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})
@@ -1,7 +1,6 @@
package test
import (
"fmt"
"testing"
"time"
@@ -34,7 +33,7 @@ func setupTestDB(t *testing.T) *xorm.Engine {
t.Cleanup(func() {
if err := x.Close(); err != nil {
fmt.Printf("failed to close xorm engine: %v", err)
t.Logf("failed to close xorm engine: %v", err)
}
})