Skip to content
This repository was archived by the owner on Jan 8, 2021. It is now read-only.

Adding script to check git status of Radix DLT Java repos#6

Open
Sajjon wants to merge 1 commit intorc/1.0-beta.11from
infra/bash_script_git_status_of_radix_repos
Open

Adding script to check git status of Radix DLT Java repos#6
Sajjon wants to merge 1 commit intorc/1.0-beta.11from
infra/bash_script_git_status_of_radix_repos

Conversation

@Sajjon
Copy link
Contributor

@Sajjon Sajjon commented Mar 27, 2020

No description provided.

Copy link
Contributor

@clstrfsck clstrfsck left a comment

Choose a reason for hiding this comment

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

Looks good, but could be made more robust by making the script runnable when pwd != scriptdir.

# co-co-co-combo breaker!
RADIXDLT_REGRESSION_TESTS_NAME_OF_REPO_AND_ASSUMED_NAME_OF_DIRECTORY='RadixRegressionTests'

# Arguments:
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good if this script worked, even if it was not run with the current directory the same as the the script directory, eg ./scripts/radix_git_status.sh

You could use scriptdir=$(dirname "$0") to work out where the script directory was relative to the working directory it was run from.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice! fixed! would be nice to get it working even when using symlinks, but readlink -f does not work on macOS 🤷‍♂️

@Sajjon Sajjon force-pushed the infra/bash_script_git_status_of_radix_repos branch from 7ad9518 to 1cdaec7 Compare March 30, 2020 09:36
@Sajjon
Copy link
Contributor Author

Sajjon commented Mar 30, 2020

@clstrfsck fixed your comments :)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

for radix_java_repo_path in "${radix_java_repos[@]}"
do
git_repo_name=$(basename $radix_java_repo_path)
if [[ "$git_repo_name" == ".." ]]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@clstrfsck do you have a solution for this? the dir $RADIXDLT_JAVA_COMMON_PATH contains "..", and thus when calling basename, it will resolve the name .. which is not what I want. I check manpage for basename but did not find any suitable argument....

@talekhinezh talekhinezh changed the base branch from rc/1.0-beta.2 to rc/1.0-beta.3 April 16, 2020 11:28
@talekhinezh talekhinezh changed the base branch from rc/1.0-beta.3 to rc/1.0-beta.4 May 8, 2020 05:34
@clstrfsck clstrfsck changed the base branch from rc/1.0-beta.4 to rc/1.0-beta.5 June 18, 2020 15:23
@talekhinezh talekhinezh changed the base branch from rc/1.0-beta.5 to rc/1.0-beta.6 July 9, 2020 12:01
@talekhinezh talekhinezh changed the base branch from rc/1.0-beta.6 to rc/1.0-beta.7 September 9, 2020 15:13
@talekhinezh talekhinezh changed the base branch from rc/1.0-beta.7 to rc/1.0-beta.8 September 9, 2020 16:30
@siy siy changed the base branch from rc/1.0-beta.8 to rc/1.0-beta.9 October 1, 2020 10:39
@talekhinezh talekhinezh changed the base branch from rc/1.0-beta.9 to rc/1.0-beta.10 October 22, 2020 01:20
@siy siy changed the base branch from rc/1.0-beta.10 to rc/1.0-beta.11 November 12, 2020 15:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants