Disabled prefix_tree and removed redundant sgx_with_prefix job
Piped subprocess I/O was causing issues in OneBranch pipelines. No clue why, but I'm guessing that the current approach (snipper below) doesn't work as expected, and falling to process._transport.close() was done prematurely, explaining multiple errors on transmitting data and early process termination
try:
async with aiotools.TaskGroup() as tg:
# These sub-tasks will get cancelled automatically when this one
# is. They only get cancelled after we leave the `async with` block,
# which allows us to wait for the process to quit first. This
# works nicely as it makes sure the log processing tasks get to see
# the final log messages emitted by cchost on its way out.
tg.create_task(self._process_stdout(process.stdout))
tg.create_task(self._process_stderr(process.stderr))
tg.create_task(self._wait_ready())
await self._wait_for_process(process)
finally:
# Old asyncio versions don't always clean up the subprocess'
# correctly. The cleanup is delayed and frequently happens after
# the event loop has closed, which leads to noise on out console
# output. The only readily available workaround it to poke at the
# implementation details of the process object, and call close() on
# the transport manually.
#
# This is fixed in Python 3.11.1, at which point we won't have to do
# anything. See https://github.com/python/cpython/issues/88050.
process._transport.close() # type: ignore[attr-defined]
Pytest redirected to {SOURCE_DIR}/out (not a separate directory, as only one can be specified)
Fixed SGX image link (should be dev in PR pipelines)
TODOs
[x] log uploading crashed because of mounted directory System.IO.FileLoadException: Unable to load symbolic/hard linked file. Check 'fsutil behavior query SymlinkEvaluation' to ensure proper behavior.
Piped subprocess I/O was causing issues in OneBranch pipelines. No clue why, but I'm guessing that the current approach (snipper below) doesn't work as expected, and falling to process._transport.close() was done prematurely, explaining multiple errors on transmitting data and early process termination
{SOURCE_DIR}/out
(not a separate directory, as only one can be specified)dev
in PR pipelines)TODOs
System.IO.FileLoadException: Unable to load symbolic/hard linked file. Check 'fsutil behavior query SymlinkEvaluation' to ensure proper behavior.