Repository navigation
fix(infra/testing): Enable iceberg spark interops integration tests on ci pipeline - #493
Conversation
|
I'm thinking we should just use the testcontainer api to manage the container lifecycles instead of compose in CI and skip the compose in testcontainers by checking whether s3 endpoint var is set. In current setup, we won't be able to get the stack handler to run executions... |
| iceberg.NestedField{ID: 14, Name: "small_dec", Type: iceberg.DecimalTypeOf(8, 2)}, | ||
| iceberg.NestedField{ID: 15, Name: "med_dec", Type: iceberg.DecimalTypeOf(16, 2)}, | ||
| iceberg.NestedField{ID: 16, Name: "large_dec", Type: iceberg.DecimalTypeOf(24, 2)}, | ||
| iceberg.NestedField{ID: 17, Name: "list", Type: &iceberg.ListType{ |
There was a problem hiding this comment.
Was planning to test more complexed schema with other complex data types, but is getting execeptions in arrow to iceberg schema visitor when AppendTable with struct or map. I'm planning to add those tests later in separate PR.
laskoviymishka
left a comment
There was a problem hiding this comment.
adding to CI - seems good idea, but i have doubts about writing actual verification code in python.
Is there any way to bring this logic into go-test instead?
| output, err := io.ReadAll(stdout) | ||
| err = recipe.ExecuteSpark(s.T(), "./validation.py", "--test", "TestReadSpecUpdate") | ||
| s.Require().NoError(err) | ||
| strings.HasSuffix(string(output), ` |
There was a problem hiding this comment.
Why not verify output?
There was a problem hiding this comment.
Was thinking we could do more fine grained verification in python since it has access to dataframe. But verifying output also works. Let me update to verify output in next commit.
bdb6336 to
2a2d97f
Compare
|
@zeroshade I fixed the previous issue where spark container cannot be found. Could you help re-enable the workflow? |
|
@zeroshade @laskoviymishka Feel free to take another pass when you get a chance. |
|
I'll try to look this over today or tomorrow! Thanks for your patience! |
zeroshade
left a comment
There was a problem hiding this comment.
Some nitpicks, but otherwise is looking good
|
|
||
| import ( | ||
| "bytes" | ||
| _ "embed" |
There was a problem hiding this comment.
Fixed. Somehow I remember I was getting lint issue, but it's not there when I checked again.
| func ExecuteSpark(t *testing.T, scriptPath string, args ...string) (string, error) { | ||
| cli, err := client.NewClientWithOpts( | ||
| client.FromEnv, | ||
| client.WithVersion("1.48"), // Use explicit version to avoid compatibility issues |
There was a problem hiding this comment.
Yes, added the API env var in CI and fallback to use the client internal default
Description