Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush I/O before reading from test file #463

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Flush I/O before reading from test file #463

merged 1 commit into from
Sep 28, 2021

Conversation

omus
Copy link
Member

@omus omus commented Sep 28, 2021

This failure occurred when running the CI tests on #453:

 high-level s3: Test Failed at /Users/runner/work/AWS.jl/AWS.jl/test/AWS.jl:844
  Expression: read(f, String) == body
   Evaluated: "" == "sample-file-body"
Stacktrace:
 [1] (::var"#41#43"{String, String, String})(f::String, io::IOStream)
   @ Main ~/work/AWS.jl/AWS.jl/test/AWS.jl:844
 [2] mktemp(fn::var"#41#43"{String, String, String}, parent::String)
   @ Base.Filesystem ./file.jl:703
 [3] mktemp(fn::Function)
   @ Base.Filesystem ./file.jl:701
 [4] macro expansion
   @ ~/work/AWS.jl/AWS.jl/test/AWS.jl:842 [inlined]
 [5] macro expansion
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [6] macro expansion
   @ ~/work/AWS.jl/AWS.jl/test/AWS.jl:801 [inlined]
 [7] macro expansion
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [8] top-level scope
   @ ~/work/AWS.jl/AWS.jl/test/AWS.jl:800
WARNING: replacing module S3.
WARNING: replacing module S3.
Backend: HTTPBackend: Test Failed at /Users/runner/work/AWS.jl/AWS.jl/test/minio.jl:45
  Expression: read(f, String) == "Hi from Minio"
   Evaluated: "" == "Hi from Minio"
Stacktrace:
  [1] (::var"#162#163")(f::String, io::IOStream)
    @ Main ~/work/AWS.jl/AWS.jl/test/minio.jl:45
  [2] mktemp(fn::var"#162#163", parent::String)
    @ Base.Filesystem ./file.jl:703
  [3] mktemp(fn::Function)
    @ Base.Filesystem ./file.jl:701
  [4] top-level scope
    @ ~/work/AWS.jl/AWS.jl/test/minio.jl:43
  [5] include
    @ ./client.jl:444 [inlined]
  [6] macro expansion
    @ ~/work/AWS.jl/AWS.jl/test/runtests.jl:66 [inlined]
  [7] macro expansion
    @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1226 [inlined]
  [8] macro expansion
    @ ~/work/AWS.jl/AWS.jl/test/runtests.jl:59 [inlined]
  [9] macro expansion
    @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [10] top-level scope
    @ ~/work/AWS.jl/AWS.jl/test/runtests.jl:52

https://github.com/JuliaCloud/AWS.jl/runs/3726649750

As it turns out I already noticed this test as part of #458 but originally thought it was a minor difference with AWS.Response. It turns out that it is just a stochastic when using the HTTPBackend.

@omus omus self-assigned this Sep 28, 2021
@omus
Copy link
Member Author

omus commented Sep 28, 2021

bors try

bors bot added a commit that referenced this pull request Sep 28, 2021
@omus omus mentioned this pull request Sep 28, 2021
@omus
Copy link
Member Author

omus commented Sep 28, 2021

I'll merge this once the CI passes as it's a trivial change

@bors
Copy link
Contributor

bors bot commented Sep 28, 2021

@omus
Copy link
Member Author

omus commented Sep 28, 2021

bors r+

bors bot added a commit that referenced this pull request Sep 28, 2021
463: Flush I/O before reading from test file r=omus a=omus

This failure occurred when running the CI tests on #453:
```
 high-level s3: Test Failed at /Users/runner/work/AWS.jl/AWS.jl/test/AWS.jl:844
  Expression: read(f, String) == body
   Evaluated: "" == "sample-file-body"
Stacktrace:
 [1] (::var"#41#43"{String, String, String})(f::String, io::IOStream)
   @ Main ~/work/AWS.jl/AWS.jl/test/AWS.jl:844
 [2] mktemp(fn::var"#41#43"{String, String, String}, parent::String)
   @ Base.Filesystem ./file.jl:703
 [3] mktemp(fn::Function)
   @ Base.Filesystem ./file.jl:701
 [4] macro expansion
   @ ~/work/AWS.jl/AWS.jl/test/AWS.jl:842 [inlined]
 [5] macro expansion
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [6] macro expansion
   @ ~/work/AWS.jl/AWS.jl/test/AWS.jl:801 [inlined]
 [7] macro expansion
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [8] top-level scope
   @ ~/work/AWS.jl/AWS.jl/test/AWS.jl:800
WARNING: replacing module S3.
WARNING: replacing module S3.
Backend: HTTPBackend: Test Failed at /Users/runner/work/AWS.jl/AWS.jl/test/minio.jl:45
  Expression: read(f, String) == "Hi from Minio"
   Evaluated: "" == "Hi from Minio"
Stacktrace:
  [1] (::var"#162#163")(f::String, io::IOStream)
    @ Main ~/work/AWS.jl/AWS.jl/test/minio.jl:45
  [2] mktemp(fn::var"#162#163", parent::String)
    @ Base.Filesystem ./file.jl:703
  [3] mktemp(fn::Function)
    @ Base.Filesystem ./file.jl:701
  [4] top-level scope
    @ ~/work/AWS.jl/AWS.jl/test/minio.jl:43
  [5] include
    @ ./client.jl:444 [inlined]
  [6] macro expansion
    @ ~/work/AWS.jl/AWS.jl/test/runtests.jl:66 [inlined]
  [7] macro expansion
    @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1226 [inlined]
  [8] macro expansion
    @ ~/work/AWS.jl/AWS.jl/test/runtests.jl:59 [inlined]
  [9] macro expansion
    @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [10] top-level scope
    @ ~/work/AWS.jl/AWS.jl/test/runtests.jl:52
```
– https://github.com/JuliaCloud/AWS.jl/runs/3726649750

As it turns out I already noticed this test as part of #458 but [originally thought it was a minor difference with `AWS.Response`](#458 (comment)). It turns out that it is just a stochastic when using the HTTPBackend. 

Co-authored-by: Curtis Vogt <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 28, 2021

This PR was included in a batch that successfully built, but then failed to merge into master. It will not be retried.

Additional information:

{"message":"At least 1 approving review is required by reviewers with write access.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

@omus omus requested a review from mattBrzezinski September 28, 2021 03:36
@omus
Copy link
Member Author

omus commented Sep 28, 2021

That's it. I'm going rogue

@omus omus merged commit 9b69ef0 into master Sep 28, 2021
@omus omus deleted the cv/mktemp-flush branch September 28, 2021 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant