dttung2905 opened a new pull request, #387:
URL: https://github.com/apache/iceberg-go/pull/387

   As mentioned in the previous comment 
https://github.com/apache/iceberg-go/pull/376#pullrequestreview-2747444932
   
   I managed to create a test bash script to run the integration test 
successfully locally. Most of it is a reference from the github action file 
https://github.com/apache/iceberg-go/blob/main/.github/workflows/go-integration.yml.
 Might be worth mentioning in the CONTRIBUTING guide
   
   ```
   #!/bin/bash
   # Integration test script for iceberg-go
   
   set -e  # Exit on any error
   
   # Start docker services
   echo "Starting docker services..."
   docker compose -f dev/docker-compose.yml up -d
   
   # Wait for services to be ready
   echo "Waiting for services to start..."
   sleep 10
   
   # Provision tables in the test environment
   echo "Provisioning tables..."
   docker compose -f dev/docker-compose.yml exec -T spark-iceberg ipython 
./provision.py
   sleep 10
   
   # Get the Minio container IP for S3 endpoint
   MINIO_IP=$(docker inspect -f 
'{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' minio)
   export AWS_S3_ENDPOINT="http://${MINIO_IP}:9000";
   export AWS_REGION="us-east-1"
   
   echo "Using S3 endpoint: $AWS_S3_ENDPOINT"
   
   # Run the integration tests
   echo "Running table scanner integration tests..."
   go test -tags integration -v -run="^TestScanner" ./table
   
   echo "Running IO integration tests..."
   go test -tags integration -v ./io
   
   echo "Running REST catalog integration tests..."
   #go test -tags integration -v -run="^TestRestIntegration$" ./catalog/rest
   go test -tags integration -v -run="^TestRestIntegration/TestCreateView$" 
./catalog/rest
   
   # Cleanup 
   echo "Cleaning up..."
   docker compose -f dev/docker-compose.yml down
   
   echo "Done!"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to