Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #1463 by restoring behavior --timeout parameter #1464

Closed

Conversation

davidcostanzo
Copy link
Contributor

Fixes

Fixes #1463

Purpose

The upgrade to python3 broke the processing of the --timeout parameter due to a type mismatch (a string was compared to an integer). The fix is to always treat the --timeout parameter as a string, deferring to the test runner to parse it and report errors.

This also fixes a typo in the name of a variable "webclient_timeout" (it was named "weblcient_timeout").

It also adds some new regression tests for the auto-test functionality.

tazmaniax and others added 30 commits November 13, 2023 20:35
The upgrade to python3 broke the processing of the --timeout parameter
due to a type mismatch (a string was compared to an integer).  The fix
is to always treat the --timeout parameter as a string, deferring to the
test runner to parse it and report errors.

This also fixes a typo in the name of a variable "webclient_timeout"
(it was named "weblcient_timeout").

It also adds some new regression tests for the auto-test functionality.
- checkout from v2 to v4
- setup-python from v3 to v4
- setup-java from v2 to v3
…rser

feat(YamlParser): add SafeConstructor to enforce security
…ate_20231113

Updated 3rd party dependencies
playframework#1466 The clock function was removed from time module in Python 3.8
….8.0

documentation(release): update documentation for release 1.8.0
This fixes an error when "play build-module" is run on Python 3.7.11:
  load() missing 1 required positional argument: 'Loader'

This follows the recommendation shown on
  https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

A loader argument is now required.  This commit assumes that
dependencies.yml uses standard YAML tags, and so uses safe_loader.
This is the most secure loader.
…dule-1456

Fix "play build-module" by replacing yaml.load with yaml.safe_load
xael-fry and others added 21 commits March 3, 2024 11:05
…-markdown

Convert README from textile to markdown
…nfiguration

feat(dependabot): add dependabot.yml configuration
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ithub_actions/actions/setup-python-5

Bump actions/setup-python from 4 to 5
…ithub_actions/actions/setup-java-4

Bump actions/setup-java from 3 to 4
…nfiguration

GitHub actions configuration
The upgrade to python3 broke the processing of the --timeout parameter
due to a type mismatch (a string was compared to an integer).  The fix
is to always treat the --timeout parameter as a string, deferring to the
test runner to parse it and report errors.

This also fixes a typo in the name of a variable "webclient_timeout"
(it was named "weblcient_timeout").

It also adds some new regression tests for the auto-test functionality.
@davidcostanzo
Copy link
Contributor Author

This PR had a merge conflict due to some recent refactoring in tests.py. I don't know GitHub well enough to merge the changes and update the PR, so I created a new branch and submitted a new PR, PR #1480, that supersedes this one.

@davidcostanzo davidcostanzo deleted the restore-timeout-1463 branch October 1, 2024 19:27
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.

Regression: "play auto-test --timeout" broke in python3 upgrade
4 participants