Skip to content

robot.utils: Deprecate read_rest_data, split_tags_from_doc and is_union #5639

Closed

Description

@pekkaklarck

Robot can execute reStructuredText files that contain Robot data in code blocks. Most of the related logic is under robot.running, but for some reason we at some point moved actual reStructuredText file parsing under robot.utils and it is exposed via read_rest_data. This function is only used by the RestParser class under robot.running and I don't see why any external code would use it, so there is no real need to have it under robot.utils. Removing it outright would be backwards incompatible, so let's deprecate it similarly as we have deprecated the old Python 2/3 compatibility layer and various other utils (#4501). In practice these deprecated utils currently emit a DeprecationWarning that is not visible by default, but the plan is to change it to more visible UserWarning in RF 8.0 and to finally remove these utils in RF 9.0. That ought to safe enough plan for read_rest_data removal as well.

I noticed this issue when reviewing PR #5633 that adds support to execute Markdown files containing embedded Robot data (#5603). It was modeled how the related reStructuredText functionality works and also initially had Markdown reading logic under robot.utils. I commented that having that logic where the new MarkdownParser is makes more sense and also mentioned that read_rest_data shouldn't be under robot.utils either.


UPDATE: I decided to change this issue so that it covers all deprecated robot.utils functions.

Activity

  1. added this to the v7.5 milestone on Mar 27, 2026
  2. self-assigned this
    on Mar 27, 2026
  3. added a commit that references this issue on Mar 27, 2026
    021be25
  4. changed the title [-]Deprecate `robot.utils.read_rest_data`[/-] [+]`robot.utils`: Deprecate `read_rest_data`, `split_tags_from_doc` and `is_union`[/+] on Aug 23, 2026
  5. pekkaklarck commented on Aug 23, 2026

    @pekkaklarck
    MemberAuthor

    Two more functions in robot.utils are deprecated:

  6. added a commit that references this issue on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions