Skip to content

Conversation

@kohsuke
Copy link
Contributor

@kohsuke kohsuke commented Nov 6, 2025

  • Resurrected record session --session-name as record session --name. Because we got rid of implicit session creation, this option is only available at the session command, so no need for extra session in the option name
  • User specifying an incorrect file name to record attachment shouldn't be an unexpected situation for our CLI. It shouldn't result in a stack trace.

@kohsuke kohsuke requested a review from Konboi November 6, 2025 22:29
except OSError as e:
# no such file, permission error, etc.
# report, then continue to next attachment file
warn_and_exit_if_fail_fast_mode(str(e))
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

if TEST_SESSION_NAME_RULE.match(value):
return value
else:
raise BadCmdLineException("--name option supports only alphabet(a-z, A-Z), number(0-9), '-', and '_'")
Copy link
Contributor

Choose a reason for hiding this comment

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

In version 1, the session name could be used in commands like record build, subset instead of using --session.
However, I remember there was a discussion about separating the options — one for what can be used in the session and another for display purposes.
Therefore, we decided to omit this option at the initial release. Am I wrong??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. That makes sense. I do want to allow users to use arbitrary string for test session display. I'm backing out that half the change now.

This reverts commit 0087ea0.

In #1179,
Yabuki-san reminded me that this removal was intentional. So I'm backing
out this portion of the change.

I'm reverting, as opposed to commit history editing, so that the code to
resurrect this capability will be in our history.
@kohsuke kohsuke requested a review from Konboi November 12, 2025 17:10
@kohsuke
Copy link
Contributor Author

kohsuke commented Nov 12, 2025

I kept one half of the change and dropped the other. @Konboi please review.

@kohsuke kohsuke merged commit 985cdc4 into main Nov 13, 2025
2 checks passed
@kohsuke kohsuke deleted the v2-polish branch November 13, 2025 00:20
@github-actions github-actions bot mentioned this pull request Nov 13, 2025
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.

3 participants