Posted on :: Tags: , , , , , , ,

๐Ÿ‡ Itโ€™s the last day of October. How are you doing mister?

๐Ÿข Yep. It was a nice October. I would like to finish by increasing the coverage.

๐Ÿ‡ How about setting up a runner on your machine to test them locally?

๐Ÿข Not now. I should fix the test as always. Later I can take a look at it. I donโ€™t want to distract myself with it.

๐Ÿ‡ Youโ€™ll need to create Apple Silicon binaries, though.

๐Ÿข I think I can cross-compile for aarch.

๐Ÿ‡ You were doing this in the past, trying to build all binaries on a single Ubuntu VM. It didnโ€™t work, as far as I remember.

๐Ÿข I even didnโ€™t read this section then and there is a dedicated project for it. The proper way is to use that. Iโ€™ll return to this after fixing the tests. I think we can release Xvc in all platforms supported by Rust.

๐Ÿ‡ Using cross-rs on Github Actions may be challenging. It seems Apple Silicon doesnโ€™t need that much work either. You can setup cross-compilation with rustup targets.

๐Ÿข Yeah. It looks so. Letโ€™s take a look at the previous devlog.

๐Ÿ‡ The page seems missing. Would you like to fix your site first?

๐Ÿข Ah, yeah. I should, maybe. Now itโ€™s time to fix those PRs. Iโ€™ll take care of the site later. I should change the theme anyway.

๐Ÿ‡ Ok. Letโ€™s take a look at outstanding PRs

๐Ÿข I want to fix the failed tests locally first. Yesterday I wasnโ€™t able to redirect the output. It looks the correct way of doing it is cargo test --all-features --no-fail-fast > $TMPDIR/xvc-test.log 2>&1. Itโ€™s required to put 2>&1 at the end, not between the redirection and output.

๐Ÿ‡ There is also &> operator that you may want to use. cargo test --all-features --no-fail-fast &> $TMPDIR/xvc-test.log should be equivalent to this.

๐Ÿข Iโ€™ll try it when the tests finish.

๐Ÿ‡ In the meantime you can work to fix the documentation. In another repository, perhaps.

๐Ÿข Good idea. Let me clone that.

๐Ÿ‡ Looks the tests has finished and the only error is Minio. It couldnโ€™t find the env variables you defined.

๐Ÿข Restarted the shell and the tests. Returned to docs now.


๐Ÿข Added a few function docs. Storage tests seems to pass. Probably they will fail in GA, because of rsync tests using one.emresult.com login in my name.

๐Ÿ‡ If thatโ€™s expected, you can push and begin to fix it.

๐Ÿข Yeah, letโ€™s push the tests.


๐Ÿข It looks connecting to localhost also poses a challenge. Instead I can create a user for xvc on the server and limit its usage.

๐Ÿ‡ Hmm. Good idea for now.

๐Ÿข I created a new user xvc-test@one.emresult.com and its SSH keys. Iโ€™ll update the action to write the secret to the keyfile.


๐Ÿ‡ Looks you forgot to install mc for Minio connection.

๐Ÿข Yeah, I must convert Minio tests to use s3cmd.

๐Ÿ‡ And your region in s3 configuration seems to be wrong.

๐Ÿข Iโ€™ll need to check this.

๐Ÿ‡ There is this line in the tests let region = env::var("AWS_DEFAULT_REGION").unwrap_or("us-east-1".to_string()); thatโ€™s probably causing that error. You should define the region properly.

๐Ÿข I set this to eu-central-1 directly and will check minio error in the next session.

๐Ÿ‡ ๐Ÿ‘


๐Ÿข Itโ€™s working except the rsync tests now.

๐Ÿ‡ I think you can just use localhost to run the tests. You may need to install openssh-server, but it should work with localhost without configuration.

๐Ÿข There may be a step missing in the configuration. Iโ€™ll try to make it run.


๐Ÿข Iโ€™m trying to use .ssh/config in GA to allow connections to the server. It doesnโ€™t work for some reason.

๐Ÿ‡ You may try to login to server outside of the tests and check if itโ€™s running.


๐Ÿข Yesterdayโ€™s last try was successful and now we have working remote storage tests.

๐Ÿ‡ ๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿฅณ

๐Ÿข Iโ€™m merging the PR.