akiradeveloper / akashic-storage

Filey system backed S3-compatible storage in Scala/Akka-Http
Apache License 2.0
22 stars 2 forks source link

Make a vagrant VM to run s3-tests toward local server in debug mode #32

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

Our primary goal is to achieve pass all the s3-tests.

But since now our server is quite immature, the test takes more than 30 minutes due to retries. Typically, one test is completed within a second but some failing test takes minutes.

As we can know which test is failing and it's reproducible, it's easy to debug with the test run and a server in debug-mode is manipulatable through local IntelliJ.

it's quite easy to make such Vagrant but the problem is if I can run a particular test in problem. But I guess s3-test creates a bucket for each test for the purpose of segregation and the number following the bucketname implies the test number that can be specified!

/hoge-ndtd9x59rf1rg8itd6hgn5j0-11/

Prefix-RandomStringForATestRun-TestNo ?

akiradeveloper commented 8 years ago

almost done but can't forward the port in VM to the host. Oh shit..

akiradeveloper commented 8 years ago

@kiaking If you have a nice idea to send HTTP request from VM to host on specific port please tell me

akiradeveloper commented 8 years ago

it's possible to access the host through the gateway (10.0.0.2 as the default)

akiradeveloper commented 8 years ago

It is 10.0.2.2 and succeeded!

akiradeveloper commented 8 years ago

With this hack, s3-tests doesn't finish. It stops at unsuccessful test in the middle. unmatch_above tests that retries many times stuck the whole test. process-timeout= option of nosetest doesn't work.

akiradeveloper commented 8 years ago

It's ok now