Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Windows CI TCL Fixups#1007

Merged
bpkroth merged 10 commits into
microsoft:mainfrom
bpkroth:windows-tcl-fixups
Oct 23, 2025
Merged

Windows CI TCL Fixups#1007
bpkroth merged 10 commits into
microsoft:mainfrom
bpkroth:windows-tcl-fixups

Conversation

@bpkroth

@bpkroth bpkroth commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

Pull Request

Title

Windows CI TCL Fixups


Description


Type of Change

  • 🛠️ Bug fix
  • 🧪 Tests

Testing

  • CI works reliably again.

@bpkroth bpkroth marked this pull request as ready for review October 23, 2025 15:56
@bpkroth bpkroth requested a review from a team as a code owner October 23, 2025 15:56
Copilot AI review requested due to automatic review settings October 23, 2025 15:56
@bpkroth bpkroth enabled auto-merge (squash) October 23, 2025 15:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses Windows CI failures related to Tcl/Tk library path detection by implementing a workaround for Python issue #111754. The changes add runtime detection and configuration of Tcl/Tk library paths on Windows systems.

  • Adds Python-based Tcl/Tk path detection in test configuration
  • Adds PowerShell-based Tcl/Tk path logging in CI workflow
  • Includes diagnostic logging to help troubleshoot path resolution issues

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
mlos_viz/mlos_viz/tests/conftest.py Adds Windows-specific workaround to detect and set TCL_LIBRARY, TK_LIBRARY, and TIX_LIBRARY environment variables at test runtime
.github/workflows/windows.yml Adds PowerShell commands to detect Tcl/Tk paths during conda environment setup and adds diagnostic logging step

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread mlos_viz/mlos_viz/tests/conftest.py
Comment thread mlos_viz/mlos_viz/tests/conftest.py

@motus motus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, modulo copilot comments

@bpkroth bpkroth merged commit 5149a41 into microsoft:main Oct 23, 2025
16 checks passed
@bpkroth bpkroth deleted the windows-tcl-fixups branch October 23, 2025 17:00
bpkroth added a commit that referenced this pull request Oct 23, 2025
# Pull Request

## Title

Capture pytest conftest warnings

______________________________________________________________________

## Description

Followup to #1007.

Copilot suggestions were correct. The `logger.warning()` messages
generated in `__init__.py` and `conftest.py` are captured, but not
emitted by default when *per-test* captures are done.

This switches those calls to `UserWarnings` so they are always captured.

This was the only location I could find for those.

Additionally, I adjust some checks for the `docker.sock` on Windows to
avoid some warnings.

______________________________________________________________________

## Type of Change

- 🛠️ Bug fix
- 🧪 Tests

______________________________________________________________________

## Testing

Manual.

______________________________________________________________________

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

Intermittent error in dabl unit tests: test_dabl_plot.py::test_dabl_plot - _tkinter.TclError: Can't find a usable init.tcl

3 participants