Skip to content

Conversation

@pull
Copy link

@pull pull bot commented May 10, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label May 10, 2022
@squash-labs
Copy link

squash-labs bot commented Feb 14, 2023

Manage this branch in Squash

Test this branch here: https://master-n02a3.squash.io

pekkaklarck and others added 28 commits April 28, 2025 01:08
One less thing for linters to complain.
It probably was useful when we supported Jython, but it's not useful
anymore.
Previous messages weren't restored meaning that messages could be
lost. The unused variable also made linters unhappy.

This code attemps to avoid problems with timeouts interrupting writing
to output files. The current code was written to fix #5395 and is
basically a rewrite of the fix for #2839. As #5417 explains, there are
still problems and bigger changes are needed.
This is a huge commit containing following changes:

- Code formatting with Black. This includes changing quote styles from
  single quotes to double quotes.

- Linting with Ruff and fixing found issues.

- Import sorting and cleanup with Ruff.

- Reorganization of multiline imports with isort. Imports that are
  part of public APIs are excluded.

- Manual inspection of all changes. Includes refactoring to make
  formatting better and some usages of `# fmt: skip`.

- Converting string formatting to use f-strings consistently.

- Configuration for Black, Ruff and isort in `pyproject.toml`.

- Invoke task `invoke format` for running the whole formatting
  process. This formatting is done only for `src`, `atest` and `utest`
  directories, but the task allows formatting also other files.
Bumps the npm_and_yarn group with 1 update in the /src/web directory: [base-x](https://github.com/cryptocoinjs/base-x).


Updates `base-x` from 3.0.9 to 3.0.11
- [Commits](cryptocoinjs/base-x@v3.0.9...v3.0.11)

---
updated-dependencies:
- dependency-name: base-x
  dependency-version: 3.0.11
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
GitHub will ignore commits in this file by defaul and Git can be
configured to ignore them locally as well.

Initially contains the code formatting commit done as part of #5387.
More commits, also past ones, can be added later if needed.
Nested timeouts occur if a library keyword uses `BuiltIn.run_keyword`.

Fixes #5422.

Also unregister signal handler we have assigned to SIGALRM. Earlier
only the timer was deactivated.
- Move high level timeout implementation from `__init__.py` to
  `timeout.py`.

- Make it an error to start or otherwise interact with inactive
  timeouts.

- Rename platform specific timeout classes to from `Timeout` to
  `<Platform>Runner`.

- Create common base class for runners.

- Add `Timeout.get_runner()` for getting a runner. This can be used
  later to get an access to a runner to be able to pause it (#5417).

- Preserve `Timeout.run()` as a convenience method.

- Remove locking and `_finished` flag from Windows implementation.
  They didn't seem to be actually needed, and also the commit were
  they were added mentioned that the fixed issue didn't really require
  them. See 1a5eeaa.
This prevents timeouts occurring when Robot is writing output files and
thus avoids output files getting corrupted. Fixes #5417.

Thanks to the refactoring in the previous commit, implementation is
relatively simple.

Also make sure delayed messages (#2839) are logged in correct order
when `BuiltIn.run_keyword` is used. Fixes #5423.
- Escape variables used in documentation.
- Remove test that didn't actually test anything.
…src/web/npm_and_yarn-7ad2ad6968

Bump base-x from 3.0.9 to 3.0.11 in /src/web in the npm_and_yarn group across 1 directory
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.4.0 to 5.6.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v5.4.0...v5.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Normal type hints should be used instead. Part of #3278.
This documentation was added as part of #5396.
- Document the ERROR level under the Log levels section.

- Clarify documentation related to logging with the ERROR level when
  `--exit-on-error` is enabled.

- Explain that TRY/EXCEPT cannot catch errors stopping the whole
  execution.

Fixes #5424.
Move validation that embedded args with library keywords don't support
embedded types to a better place. Also move related tests to suite
testing embedded args with library keywords. Related to #3278.
pekkaklarck and others added 30 commits November 2, 2025 18:23
This seems to be the recommended naming style for type aliases.
Old name is preserved for backwards compatibility reasons for now.
Make it more explicit that `Run`, `Run And Return RC` and `Run And
Returcn RC And Output` are considered deprecated and the Process
library should be used instead. Especially `Run` is so widely used
that we cannot remove or even loudly deprecate it yet.

Fixes #5535.
Part of #5373.

Also allow disabling `Wait Until Created/Removed` timeout using
`None`. That fixes #5534.
It seemed to be impossible the get the granurality needed for
whitespaces with tempaltes, fallback to render with TS.
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The change was done in 366b7f5. It was proposed in #5533 and that
issue explains why it was initially considered a good idea and why we
eventually decided otherwise.
The new libdoc build pipeline optimizes html so that attributes are not quoted.
Take that inot account when writing generator information.
…s/actions/setup-node-6

Bump actions/setup-node from 5 to 6
There are use cases for printing a warning or error message to the log
but not to the console.

This commit adds an optional also_console argument to logger.write,
logger.warn, and logger.error. Its value is stored in the message object
and based on it the loggers in src/robot/output/console/ print the
message or not.

Fixes #5460.

* atest: Update "Write messages to console" test

Messages logged with `also_console=True` are now printed to stderr
instead of stdout (see previous commit).

* atest: Test writing warning and error messages only to log
- Rename `also_console` argument to `console`. Preserve the old
  argument with `robot.api.logger.info` for backwards compatibility
  reasons for now.

- Enhance argument documentation in `robot.api.logger`.

- When writing normal messages (i.e. not warnings or errors) to
  console, always write them to `stdout` and never use extra
  prefix. This was a bug in PR #5462.

- Write normal messages to console in a single place.

- Enhance `Log` so that it can log warnings and errors so that they
  aren't written to console.

- Use standard ValueError, not DataError, if log level is invalid.

Related to issue #5460.
Mostly cleanup. In some cases tests were also enhanced to validate
more values.
Based on my last review to PR #5528. Part of #5527.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.