Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Add github test skeleton (NOT FOR MERGING)#51

Closed
alamb wants to merge 1 commit intoinfluxdata:mainfrom
alamb:alamb/test_gh_actions
Closed

Add github test skeleton (NOT FOR MERGING)#51
alamb wants to merge 1 commit intoinfluxdata:mainfrom
alamb:alamb/test_gh_actions

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jul 15, 2022

This PR is to test porting tests (the integration tests specifically) from circle ci to github actions

The idea is to get the github actions based tests working here and then add them to apache/arrow-rs#2081

Once apache/arrow-rs#2081 is merged, I will then update the tests there as well

@alamb alamb marked this pull request as draft July 15, 2022 17:57
@alamb alamb changed the title Add github test skeleton Add github test skeleton (NOT FOR MERGING) Jul 15, 2022
(true, StorageAccountClient::new_emulator_default())
// Allow overriding defaults. Values taken from
// from https://docs.rs/azure_storage/0.2.0/src/azure_storage/core/clients/storage_account_client.rs.html#129-141
let http_client = azure_core::new_http_client();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed because when run inside a github runner, other container run as 'services' not on the 127.0.0.1 loopback

@alamb
Copy link
Contributor Author

alamb commented Jul 15, 2022

The 'gcs' tests are failing currently because the fake-gcs container is using https and the tests want to use http. It seems like passing arguments to the docker service containers is challenging for some reason on github. Will sort it out shortly

.trim_end_matches('/')
.to_string();

println!("AAL using remote blob base URL: {}", blob_base_url);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

left over -- should remove before merge

Suggested change
println!("AAL using remote blob base URL: {}", blob_base_url);

fn get_client() -> Result<Client> {
let mut builder = Client::builder();

if std::env::var("GCP_ACCEPT_INVALID_CERTIFICATES").is_ok() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This (or something like it is needed) as I couldn't figure out a way to pass -service http to the fake-gcs-container (apparently this is not supported by github service containers). So I went with this approach instead of allowing invalid certificates via environment -- I may look at the code and see if there is a way to put this into the actual config object and read the environment from the tests.

Copy link
Contributor

@tustvold tustvold Jul 17, 2022

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@alamb alamb Jul 18, 2022

Choose a reason for hiding this comment

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

Thank you for the pointer. I tried to override entrypoint -- apparently you can't use it to override the entrypoint and pass along arguments to the binary "for reasons" and the workaround is to make a new docker container in the github action job that has the right arguments. That sounded unnecessarily complicated and so I fell back to this one

@alamb
Copy link
Contributor Author

alamb commented Jul 23, 2022

Will merge in apache/arrow-rs#2148 so closing this PR

@alamb alamb closed this Jul 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants