Skip to content

TS-46436 improve log messages#903

Open
karottenreibe wants to merge 2 commits into
masterfrom
better_log_messages
Open

TS-46436 improve log messages#903
karottenreibe wants to merge 2 commits into
masterfrom
better_log_messages

Conversation

@karottenreibe
Copy link
Copy Markdown
Contributor

@karottenreibe karottenreibe commented May 21, 2026

Addresses issue TS-46436

  • Changes are tested adequately
  • Teamscale documentation updated in case of user-visible changes
  • CHANGELOG.md updated
  • Present new features in N&N
  • TGA Tutorial updated
  • TIA Tutorial updated

Please respect the vote of the Teamscale bot or flag irrelevant findings as tolerated or false positives. If you feel that the Teamscale config needs adjustment, please state so in a comment and discuss this with your reviewer.

@karottenreibe karottenreibe requested a review from DreierF May 21, 2026 10:04
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
LOG.severe {
"Cannot resolve the feature classpath for ${descriptor}. This is probably a bug. Please report to CQSE"
"Cannot resolve the feature classpath for Cucumber test descriptor '${descriptor.displayName}'." +
" Please report a bug" +
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the to CQSE somehow got lost here

throw new RuntimeException(
"Reflection failed to access internal Instruction.predecessor field."
+ " This usually means the bundled JaCoCo version was upgraded without updating this class."
+ " Please report a bug.",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

to CQSE?

if (classesDirectories.isEmpty()) {
logger.warn("No class directories found for caching.")
logger.warn(
"No class directories provided — testwise coverage will be calculated with out caching."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"No class directories provided — testwise coverage will be calculated with out caching."
"No class directories provided — testwise coverage will be calculated without caching."


private fun missingServerPropertyMessage(property: String, example: String) =
"Teamscale server '$property' must not be empty." +
" Set it via 'teamscale { server { $property.set(\"$example\") } }' in your build.gradle.kts."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
" Set it via 'teamscale { server { $property.set(\"$example\") } }' in your build.gradle.kts."
" Set it via 'teamscale { server { $property = \"$example\" } }' in your build.gradle.kts."

Comment thread CHANGELOG.md
- PATCH version when you make backwards compatible bug fixes.

# Next version
- [security fix] _agent_: The Azure shared-key error messages no longer include the configured `azure-key` value in the exception text (previously leaked the access key into stack traces and logs)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we mention that we improved the log messages? (no strong preference from my side)

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.

2 participants