Skip to content

feature/524_add-version-to-help-text#525

Open
redcatbear wants to merge 15 commits into
mainfrom
feature/524_add-version-to-help-text
Open

feature/524_add-version-to-help-text#525
redcatbear wants to merge 15 commits into
mainfrom
feature/524_add-version-to-help-text

Conversation

@redcatbear
Copy link
Copy Markdown
Collaborator

Close #524.

@redcatbear redcatbear self-assigned this May 26, 2026
@redcatbear redcatbear requested a review from kaklakariada May 26, 2026 11:12
Copy link
Copy Markdown
Collaborator Author

@redcatbear redcatbear left a comment

Choose a reason for hiding this comment

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

I did a prereview of my own changes. I found a broken skill link in the process. Hence the skill changes that have nothing to do with this PR per-se.

Comment thread .agents/skills/openfasttrace-spec-driven-development/SKILL.md
Comment thread .agents/skills/openfasttrace/skill.md Outdated
Comment thread .agents/skills/openfasttrace/skill.md Outdated
Comment on lines +44 to +49
## Integration

OFT is typically integrated into CI builds via plugins:

- **Maven**: `openfasttrace-maven-plugin`
- **Gradle**: `openfasttrace-gradle`
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.

Please create a section "Tracing" with subsections

  • CLI
  • Maven
  • Gradle
    Each section should describe how to run the tracing using that tool.

I propose to also provide & document a wrapper script oftw.sh (e.g. based on https://github.com/exasol/exasol-driver-ts/blob/document-csv-import/.github/workflows/oftw.sh) for simplifying usage in CI & locally.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added one section per variant.

Comment thread .agents/skills/openfasttrace/skill.md Outdated
}
catch (final IOException exception)
{
LOGGER.warning("Error loading version from resource file: " + exception.getMessage());
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.

Also log stack trace?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think that is necessary in this case. It's a static resource anyway. Not much that can go wrong.

@@ -1,4 +1,4 @@
OpenFastTrace
OpenFastTrace ${version}
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
OpenFastTrace ${version}
OpenFastTrace version ${version}

Avoid confusion in case the version is UNKNOWN

Comment on lines +26 to +27
assertAll(() -> assertThat(version, is(not("unknown"))),
() -> assertThat(version, is(not("${version}"))));
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.

Make the unknown value case insensitive, add an assertion using a regex \d+\.\d+\.\d+

Comment thread core/pom.xml
Comment on lines +25 to +31
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>version.properties</exclude>
</excludes>
</resource>
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.

Why is the file included and excluded?

Suggested change
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>version.properties</exclude>
</excludes>
</resource>

Comment thread doc/spec/design.md
#### CLI Version
`dsn~cli.version~1`

The CLI provides the current version of OpenFastTrace read from the resource file `version.properties`.
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.

Reading from a resource file is an implementation detail. If you want to be so specific, please also describe how the version gets into this file ;)

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
58.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add version to help text

2 participants