Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat][build] Print out more info for bin/pulsar version #17752

Merged

Conversation

michaeljmarshall
Copy link
Member

Motivation

The current bin/pulsar version script only prints out the version string. When running custom builds of Pulsar, this is sometimes not enough to know which version you have. Since the PulsarVersion class already has more information, I propose we print out all of its information in the same format that the broker logs the information.

Here is a sample output for this specific PR:

$ bin/pulsar version
Current version of pulsar is: 2.11.0-SNAPSHOT
Git Revision 4414e3d76c27e821e75f30eae853862b04e63200
Git Branch print-more-version-info
Built by Michael Marshall <[email protected]> on mmarshall-rmbp16 at 2020-01-22T09:10:15-0600

Modifications

  • Add more output to the bin/pulsar version command.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Documentation

  • doc-not-needed
    (Please explain why)

Matching PR in forked repository

PR in forked repository: michaeljmarshall#3

@michaeljmarshall michaeljmarshall added type/feature The PR added a new feature or issue requested a new feature area/build labels Sep 20, 2022
@michaeljmarshall michaeljmarshall added this to the 2.12.0 milestone Sep 20, 2022
@michaeljmarshall michaeljmarshall self-assigned this Sep 20, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 20, 2022
@lhotari
Copy link
Member

lhotari commented Sep 20, 2022

/pulsarbot rerun-failure-checks

@michaeljmarshall michaeljmarshall merged commit 2d2a0b8 into apache:master Sep 21, 2022
michaeljmarshall added a commit to datastax/pulsar that referenced this pull request Sep 21, 2022
### Motivation

The current `bin/pulsar version` script only prints out the version string. When running custom builds of Pulsar, this is sometimes not enough to know which version you have. Since the `PulsarVersion` class already has more information, I propose we print out all of its information in the same format that the broker logs the information.

Here is a sample output for this specific PR:

```shell
$ bin/pulsar version
Current version of pulsar is: 2.11.0-SNAPSHOT
Git Revision 4414e3d
Git Branch print-more-version-info
Built by Michael Marshall <[email protected]> on mmarshall-rmbp16 at 2020-01-22T09:10:15-0600
```

### Modifications

* Add more output to the `bin/pulsar version` command.

### Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

### Documentation

- [x] `doc-not-needed`
(Please explain why)

### Matching PR in forked repository

PR in forked repository: michaeljmarshall#3

(cherry picked from commit 2d2a0b8)
michaeljmarshall added a commit to datastax/pulsar that referenced this pull request Sep 21, 2022
### Motivation

The current `bin/pulsar version` script only prints out the version string. When running custom builds of Pulsar, this is sometimes not enough to know which version you have. Since the `PulsarVersion` class already has more information, I propose we print out all of its information in the same format that the broker logs the information.

Here is a sample output for this specific PR:

```shell
$ bin/pulsar version
Current version of pulsar is: 2.11.0-SNAPSHOT
Git Revision 4414e3d
Git Branch print-more-version-info
Built by Michael Marshall <[email protected]> on mmarshall-rmbp16 at 2020-01-22T09:10:15-0600
```

### Modifications

* Add more output to the `bin/pulsar version` command.

### Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

### Documentation

- [x] `doc-not-needed`
(Please explain why)

### Matching PR in forked repository

PR in forked repository: michaeljmarshall#3

(cherry picked from commit 2d2a0b8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build doc-not-needed Your PR changes do not impact docs type/feature The PR added a new feature or issue requested a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants