Skip to content

Document TMT_TREE data persistence limitations#4545

Open
thrix wants to merge 2 commits intomainfrom
tmt-tree-not-persistant
Open

Document TMT_TREE data persistence limitations#4545
thrix wants to merge 2 commits intomainfrom
tmt-tree-not-persistant

Conversation

@thrix
Copy link
Contributor

@thrix thrix commented Feb 3, 2026

Add warnings and guidance about data persistence behavior in tmt:

  • Add warning to TMT_TREE that data written to this directory is not guaranteed to persist between steps
  • Update TMT_PLAN_DATA description to emphasize it as the recommended location for storing persistent data across steps
  • Add note to TMT_TEST_DATA clarifying it is test-specific and pointing users to TMT_PLAN_DATA for cross-step data sharing
  • Expand the prepare step documentation with a warning about TMT_TREE and cross-reference to the step-variables documentation

This helps users avoid a common pitfall where data stored in TMT_TREE may or may not persist depending on the provisioner used, leading to inconsistent behavior between local development and CI environments.

Assisted-by: Claude Code

Resolves #4543

Pull Request Checklist:

  • write the documentation
  • include a release note

Add warnings and guidance about data persistence behavior in tmt:

- Add warning to TMT_TREE that data written to this directory is not
  guaranteed to persist between steps
- Update TMT_PLAN_DATA description to emphasize it as the recommended
  location for storing persistent data across steps
- Add note to TMT_TEST_DATA clarifying it is test-specific and pointing
  users to TMT_PLAN_DATA for cross-step data sharing
- Expand the prepare step documentation with a warning about TMT_TREE
  and cross-reference to the step-variables documentation

This helps users avoid a common pitfall where data stored in TMT_TREE
may or may not persist depending on the provisioner used, leading to
inconsistent behavior between local development and CI environments.

Assisted-by Claude Code
@thrix thrix added the documentation Improvements or additions to documentation label Feb 3, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @thrix, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the documentation for tmt to provide clearer guidance on data persistence across different execution steps. It addresses a common pitfall where users might incorrectly assume data in TMT_TREE persists, by explicitly warning against this and emphasizing TMT_PLAN_DATA as the reliable location for inter-step data sharing. The changes aim to improve user understanding and prevent inconsistent behavior between development and CI environments.

Highlights

  • TMT_TREE Persistence Warning: Added a clear warning to the TMT_TREE documentation, stating that data stored in this directory is not guaranteed to persist between steps and advising against its use for persistent data.
  • TMT_PLAN_DATA Emphasis: Updated the description for TMT_PLAN_DATA to explicitly highlight it as the recommended location for storing data that needs to persist across different steps (e.g., from prepare to execute).
  • TMT_TEST_DATA Clarification: Clarified that TMT_TEST_DATA is specific to individual test executions and should not be used for sharing data between steps, directing users to TMT_PLAN_DATA for such needs.
  • Prepare Step Documentation Update: Expanded the prepare step documentation to include a warning about the non-persistent nature of TMT_TREE and cross-referenced the step-variables documentation for more details.
  • Release Note Added: Included a release note (4543.fmf) documenting these changes to the persistence guidance for TMT_TREE, TMT_PLAN_DATA, and TMT_TEST_DATA.
Changelog
  • docs/overview.rst
    • Added a warning block to the TMT_TREE description, advising against using it for persistent data and recommending TMT_PLAN_DATA or TMT_TEST_DATA instead.
    • Modified the TMT_PLAN_DATA description to explicitly state it is the 'recommended location' for persistent data across steps.
    • Appended a note to the TMT_TEST_DATA description, clarifying its test-specific nature and directing users to TMT_PLAN_DATA for cross-step data sharing.
    • Updated the TMT_PLAN_DATA description to emphasize its role as the recommended location for data persistence between steps.
  • docs/releases/pending/4543.fmf
    • Added a new release note file detailing the documentation updates regarding TMT_TREE persistence and the guidance for TMT_PLAN_DATA and TMT_TEST_DATA.
  • spec/plans/prepare.fmf
    • Inserted a warning into the prepare step's description, explicitly advising against storing persistent data in TMT_TREE and referencing the step-variables documentation.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request does a great job of improving the documentation around data persistence in tmt, specifically clarifying the limitations of TMT_TREE and promoting the use of TMT_PLAN_DATA and TMT_TEST_DATA for persistent and test-specific data respectively. The changes are consistent across overview.rst, prepare.fmf, and the new release note. I've added a couple of minor suggestions to make the new warning messages even more concise and readable. Overall, this is a valuable clarification for users.

Comment on lines +48 to +50
Do **not** store persistent data in ``${TMT_TREE}``. There is no
guarantee that data written to this directory will persist between
steps. See :ref:`step-variables` for more details.
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This is a great addition. For better clarity and conciseness, you could rephrase this warning to avoid the repetition of 'persistent data' and 'persist between steps'.

        Do **not** store data in ``${TMT_TREE}`` if it needs to persist
        between steps, as there is no guarantee its contents will be
        preserved. See :ref:`step-variables` for more details.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@LecrisUT LecrisUT added this to planning Feb 4, 2026
@github-project-automation github-project-automation bot moved this to backlog in planning Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

Status: backlog

Development

Successfully merging this pull request may close these issues.

TMT_TREE data persistence behavior is inconsistent and undocumented

1 participant