Skip to content

Fix 3.14 tk tests#1059

Merged
amilcarlucas merged 2 commits into
masterfrom
fix_3.14_tk_tests
Nov 25, 2025
Merged

Fix 3.14 tk tests#1059
amilcarlucas merged 2 commits into
masterfrom
fix_3.14_tk_tests

Conversation

@amilcarlucas

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 25, 2025 17:17

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 aims to fix tkinter-related test failures when running tests with Python 3.14 by installing additional Tcl/Tk system dependencies and configuring environment variables for Tcl/Tk library paths. It also increases the test coverage threshold from 80% to 89%.

  • Adds explicit Tcl/Tk 8.6 system packages to ensure compatibility with Python 3.14
  • Configures TCL_LIBRARY and TK_LIBRARY environment variables to help Python locate Tcl/Tk libraries
  • Updates coverage requirements to reflect improved test coverage

exit 1
fi
coverage report --fail-under=80
coverage report --fail-under=89

Copilot AI Nov 25, 2025

Copy link

Choose a reason for hiding this comment

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

The coverage threshold has been increased from 80% to 89%, which is a significant jump of 9 percentage points. This appears to be an arbitrary change that is not directly related to fixing Python 3.14 Tcl/Tk tests. According to ARCHITECTURE.md, coverage should "increase monotonically", but such a large jump may cause issues if the actual coverage improvement is smaller. Consider verifying that the actual coverage increase justifies this threshold change, or adjust it to match the actual coverage achieved by the test improvements.

Suggested change
coverage report --fail-under=89
coverage report --fail-under=80

Copilot uses AI. Check for mistakes.
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.80
thresholdAll: 0.89

Copilot AI Nov 25, 2025

Copy link

Choose a reason for hiding this comment

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

The coverage threshold in this second location has also been increased from 0.80 to 0.89. This should be consistent with the change on line 230, but the same concern applies: verify that the actual coverage increase justifies this threshold change to avoid breaking the CI pipeline unnecessarily.

Suggested change
thresholdAll: 0.89
thresholdAll: 0.80

Copilot uses AI. Check for mistakes.
Comment on lines +60 to +61
echo "TCL_LIBRARY=/usr/share/tcltk/tcl8.6" >> $GITHUB_ENV
echo "TK_LIBRARY=/usr/share/tcltk/tk8.6" >> $GITHUB_ENV

Copilot AI Nov 25, 2025

Copy link

Choose a reason for hiding this comment

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

The Tcl/Tk library paths specified here may not be correct for Ubuntu systems. The standard Tcl/Tk library paths on Ubuntu are typically /usr/lib/tcl8.6 and /usr/lib/tk8.6, not /usr/share/tcltk/tcl8.6 and /usr/share/tcltk/tk8.6. The /usr/share/tcltk/ path typically contains documentation and demos, not the library files themselves. Consider verifying these paths are correct for the Ubuntu version used in GitHub Actions, or use dynamic path detection to ensure compatibility.

Suggested change
echo "TCL_LIBRARY=/usr/share/tcltk/tcl8.6" >> $GITHUB_ENV
echo "TK_LIBRARY=/usr/share/tcltk/tk8.6" >> $GITHUB_ENV
echo "TCL_LIBRARY=/usr/lib/tcl8.6" >> $GITHUB_ENV
echo "TK_LIBRARY=/usr/lib/tk8.6" >> $GITHUB_ENV

Copilot uses AI. Check for mistakes.
@github-actions

github-actions Bot commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10282 9364 91% 89% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: cef1066 by action🐍

@github-actions

github-actions Bot commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

Test Results

    3 files  +    3      3 suites  +3   31m 44s ⏱️ + 31m 44s
2 504 tests +2 504  2 159 ✅ +2 159   49 💤 + 49   53 ❌ + 53  243 🔥 +243 
7 512 runs  +7 512  6 477 ✅ +6 477  147 💤 +147  159 ❌ +159  729 🔥 +729 

For more details on these failures and errors, see this check.

Results for commit 1097a42. ± Comparison against base commit 9e79d2e.

♻️ This comment has been updated with latest results.

@amilcarlucas amilcarlucas merged commit f8ff755 into master Nov 25, 2025
4 of 7 checks passed
@amilcarlucas amilcarlucas deleted the fix_3.14_tk_tests branch November 25, 2025 17:50
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.

2 participants