Title: [Azure Functions] Logging E2E flakes when host log records share a physical line · Issue #330 · microsoft/durabletask-python · GitHub
Open Graph Title: [Azure Functions] Logging E2E flakes when host log records share a physical line · Issue #330 · microsoft/durabletask-python
X Title: [Azure Functions] Logging E2E flakes when host log records share a physical line · Issue #330 · microsoft/durabletask-python
Description: Failure tests/azure-functions-durable/e2e/test_logging_e2e.py::test_client_and_worker_logs_flow_through_host can fail even when the orchestration completes and the expected SDK message appears with the Functions host timestamp prefix. Ob...
Open Graph Description: Failure tests/azure-functions-durable/e2e/test_logging_e2e.py::test_client_and_worker_logs_flow_through_host can fail even when the orchestration completes and the expected SDK message appears with...
X Description: Failure tests/azure-functions-durable/e2e/test_logging_e2e.py::test_client_and_worker_logs_flow_through_host can fail even when the orchestration completes and the expected SDK message appears with...
Opengraph URL: https://github.com/microsoft/durabletask-python/issues/330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Azure Functions] Logging E2E flakes when host log records share a physical line","articleBody":"## Failure\n\n`tests/azure-functions-durable/e2e/test_logging_e2e.py::test_client_and_worker_logs_flow_through_host` can fail even when the orchestration completes and the expected SDK message appears with the Functions host timestamp prefix.\n\nObserved in the `e2e-tests (strict-typing=0)` job on #329:\n\n- [Failed job and logs](https://github.com/microsoft/durabletask-python/actions/runs/41512036740/job/125506570558)\n- Commit: `3dc0afceb7b565d191f457907367d467c8e152d3`\n- Ubuntu runner, Python 3.13.17; `nox -s functions_e2e`\n- Result: 1 failed, 83 passed, 6 skipped. The strict-typing=1 job passed.\n\nThe orchestration reached `COMPLETED`. The assertion failed at `test_logging_e2e.py:16`, called from line 31:\n\n```python\nassert re.fullmatch(rf\"\\[[^\\]]+Z\\] {re.escape(message)}\", line)\n```\n\nThe captured line began with the complete expected message, immediately followed by another timestamped host/storage record on the same physical line:\n\n```text\n[2026-11-02T19:42:58.870Z] Starting new 'activity_chain' instance with ID = 'da25aeb425694ab08c8503f48a57f29c'.[2026-...\n```\n\nThe pytest representation truncates the intervening text, but shows an Azure Storage request URL later in the same string. Full Functions host logs are attached to the workflow run as `func-host-logs-strict-0`.\n\n## Likely cause\n\n`FunctionApp.wait_for_host_log()` returns the first matching physical line from the shared host stdout/stderr capture. `_assert_host_routed()` assumes that this line contains exactly one host log record. Adjacent records without a separating newline violate that assumption even though the expected record is present with the correct prefix. The observed failure is a log-record framing issue; the underlying writer/interleaving mechanism still needs investigation.\n\n#329 changes only core large-payload tests, which this Functions E2E invocation does not collect. Neither the logging assertion nor its host harness is changed there.\n\n## Expected behavior\n\nThe logging test should tolerate adjacent/interleaved host records while still verifying that SDK messages are routed through the Functions host, rather than weakening the assertion to an unrestricted substring check. Preserve the existing coverage for host category filtering.\n\n## Follow-up\n\nInvestigate the captured host output and make the test's record extraction robust to physical-line framing. Keep this separate from the missing-payload worker isolation coverage in #329.","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-11-02T19:46:36Z","url":"https://github.com/microsoft/durabletask-python/issues/330"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f778c9f2-b5d1-81ae-109d-2cf78b216ece |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9DA:1E2E47:718A:9A41:6AFE2F68 |
| html-safe-nonce | bb9271e0f22a43938c056a0fcc494f875b48d8b4c671ef47134e9da302624f07 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOURBOjFFMkU0Nzo3MThBOjlBNDE6NkFGRTJGNjgiLCJ2aXNpdG9yX2lkIjoiODE5Mjc0OTU2MDI5Mjg0NzQ2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 473951813d20bd253d5e229116b8a2274624039ca445ff168b1f95cdf45790fd |
| hovercard-subject-tag | issue:6169757119 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-python/330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c7c7b6154ec850a130d3958663821b828e78954ade54c1be7a973b4fecc2edd/microsoft/durabletask-python/issues/330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c7c7b6154ec850a130d3958663821b828e78954ade54c1be7a973b4fecc2edd/microsoft/durabletask-python/issues/330 |
| og:image:alt | Failure tests/azure-functions-durable/e2e/test_logging_e2e.py::test_client_and_worker_logs_flow_through_host can fail even when the orchestration completes and the expected SDK message appears with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andystaples |
| hostname | github.com |
| expected-hostname | github.com |
| None | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/durabletask-python git https://github.com/microsoft/durabletask-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 627664515 |
| octolytics-dimension-repository_nwo | microsoft/durabletask-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627664515 |
| octolytics-dimension-repository_network_root_nwo | microsoft/durabletask-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width