CI: BlockingIOError about 50% of the time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On Travis, I've seen what seems to be flaky test failures during the download of Python modules before, never locally. I'm not sure that the test name is meaningful here but including the most recent one for completeness.
integration_
Downloading 'PyYAML-
File "/usr/lib/
"__main__", mod_spec)
File "/usr/lib/
exec(code, run_globals)
File "/usr/lib/
main(
File "/usr/lib/
self.runTests()
File "/usr/lib/
self.result = testRunner.
File "/usr/lib/
result.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.write(arg)
BlockingIOError: [Errno 11] write could not complete without blocking
Changed in snapcraft: | |
status: | New → Confirmed |
I'm seeing this all over the place, in different tests, and unrelated PRs. Here's a full one:
======= ======= ======= ======= ======= ======= ======= ======= ======= =======
ERROR: test_build (test_rust_ plugin. RustPluginConfi nementTestCase)
test_rust_ plugin. RustPluginConfi nementTestCase. test_build (classic)
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
testtools. testresult. real._StringExc eption: output: {{{
Starting snapcraft devel from /root/snapcraft /snapcraft/ cli.
"grade" property not specified: defaulting to "stable"
Setting up part 'rust-hello' with plugin 'rust' and properties {'plugin': 'rust', 'source': '.', 'stage': [], 'prime': []}.
Marking 'gcc' (and its dependencies) to be fetched
Marking 'git' (and its dependencies) to be fetched
Marking 'file' (and its dependencies) to be fetched
Marking 'curl' (and its dependencies) to be fetched
Getting details for core
Starting new HTTPS connection (1): api.snapcraft.io
"GET /api/v1/ snaps/details/ core?channel= stable& fields= status% 2Canon_ download_ url%2Cdownload_ url%2Cdownload_ sha3_384% 2Cdownload_ sha512% 2Csnap_ id%2Crevision% 2Crelease HTTP/1.1" 200 589
Downloading core
Starting new HTTPS connection (1): api.snapcraft.io
"HEAD /api/v1/ snaps/download/ 99T7MUlRhtI3U0Q Fgl5mXXESAiSwt7 76_3017. snap HTTP/1.1" 302 0
Starting new HTTPS connection (1): 068ed04f23. site.internapcd n.net
"GET /download- snap/99T7MUlRht I3U0QFgl5mXXESA iSwt776_ 3017.snap? t=2017- 10-19T21: 00:00Z& h=6b7cc022a2504 34d9f0754c24f91 5b5970ea5803 HTTP/1.1" 200 87080960
Successfully downloaded core at /tmp/tmpcb4i_ dqh/core. snap
b'Parallel unsquashfs: Using 2 processors\n1 inodes (1 blocks) to write\n\ n\r[=== ======= ======= ======= ======= ======= ======= ======= ======= ======= =|] 1/1 100%\n\ncreated 1 files\ncreated 2 directories\ ncreated 0 symlinks\ncreated 0 devices\ncreated 0 fifos\n'
Setting up '/tmp/tmpdl8bye 5v/.cache/ snapcraft/ projects/ snapcraft- core/snap_ hashes/ amd64/09407c3b0 197d5a3f9324b83 a50b266840550ad 9f15ff7fafe3be2 82d927901def755 c6a6f64916acb41 ebbcdcd9cdd5' in '/snap/ core/current'
Parallel unsquashfs: Using 2 processors
12267 inodes (13603 blocks) to write
[====== ======= ======= ======= ======= ======= ======= ======= ====-] 13603/13603 100%
created 9635 files
created 1464 directories
created 2543 symlinks
created 79 devices
created 0 fifos
Preparing to pull rust-hello
Pulling rust-hello
Starting new HTTPS connection (1): static. rust-lang. org
"GET /rustup.sh HTTP/1.1" 200 61986
Downloading 'core.snap' 0%
Downloading 'core.snap' 1%
Downloading 'core.snap' 2%
Downloading 'core.snap' 3%
Downloading 'core.snap' 4%
Downloading 'core.snap' 5%
Downloading 'core.snap' 6%
Downloading 'core.snap' 7%
Downloading 'core.snap' 8%
...