Skip to content

Conversation

@rajnish-jauhari
Copy link

Added s390x arch in Makefiles to build multi arch images and
Skipping below tests on s390x because of image unavailability :

  • TestGateway/local-gateway-service
  • TestBookinfo
  • TestMongo
  • TestHipsterShop
  • TestPostgres

cc: @hash-d

@hash-d hash-d self-requested a review September 18, 2025 20:06
Copy link
Member

@hash-d hash-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the tests that cannot be run on Z because of missing images, the cluster's architecture should be checked, instead of the local test machine.

If you're running from an x86 VM pointing to a Z cluster, for example, those tests would not be skipped and the test would fail.

)

func TestBookinfo(t *testing.T) {
if runtime.GOARCH == "s390x" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking runtime.GOARCH is ok for testLocalGatewayService, because that's a local test. For TestBookInfo, however, you should be inspecting the cluster's architecture, not the local machine.

Check how that's done for ARM, you can adapt that for Z.

…some tests on s390x because of image unavailability
@rajnish-jauhari
Copy link
Author

@hash-d made the changes as requested by you

Copy link
Member

@hash-d hash-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the check pass, and we should be good to merge.

//Skipping test on s390x architecture as images unavailable for s390x
cluster := base.GetClusterContext()
if err := arch.SkipOnlyS390x(t, cluster); err != nil {
t.Fatal(err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check failed because of incorrect Go formatting. This is one such case (missing indent). Please fix these so the check passes.

}

// CheckOnlyS390x skips ONLY if the architecture is s390x
func CheckOnlyS390x(clusters ...*base.ClusterContext) (err error, skip bool) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would have been best to generalize Check(), as listed on its TODO, but this works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants