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

Cu 86bygcqxd images placement for data store dashboards monitoring #287

Conversation

brett-onions
Copy link
Contributor

@brett-onions brett-onions commented Apr 25, 2024

Summary by CodeRabbit

  • New Features

    • Added a new test case for the CDR recipe in the testing workflow.
  • Improvements

    • Updated postgres-metastore service to use a variable for the image version, enhancing flexibility and maintainability.
  • Chores

    • Environment variables for SS_POSTGRES_IMAGE and POSTGRES_METASTORE added to package metadata.
    • Refactored the test script to use a function for running different tests, improving code organization and readability.

…ta-file-for-analytics-datastore-elastic-search' into CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring
…ta-file-for-dashboard-visualiser-superset' into CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring
…ta-file-for-dashboard-visualiser-kibana' into CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring
…ta-file-for-dashboard-visualiser-jsreport' into CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring
…ta-file-for-monitoring' into CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring
…ta-file-for-analytics-datastore-elastic-search' into CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring
@rcrichton
Copy link
Member

Copy link
Collaborator

@drizzentic drizzentic left a comment

Choose a reason for hiding this comment

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

LGTM!

@drizzentic drizzentic marked this pull request as ready for review May 7, 2024 09:55
@rcrichton
Copy link
Member

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented May 10, 2024

Actions Performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

coderabbitai bot commented May 10, 2024

Walkthrough

The recent updates encompass several changes across various files. The docker-compose.postgres.yml file now uses an environment variable for the postgres image version, enhancing flexibility. The package-metadata.json file has been updated to include new environment variables. Additionally, modifications to the .github/workflows/run-tests.sh script include commenting out a line for the clickhouse test case and introducing a new test case for the CDR recipe. A new function run_test() was also added for better test management.

Changes

Files Change Summary
dashboard-visualiser-superset/docker-compose.postgres.yml Updated the postgres-metastore service to use a variable ${SS_POSTGRES_IMAGE} instead of a specific version postgres:16.2.
dashboard-visualiser-superset/package-metadata.json Added environment variables "SS_POSTGRES_IMAGE": "postgres:16.2" and "POSTGRES_METASTORE": "node-2".
.github/workflows/run-tests.sh Commented out the DOCKER_HOST variable for the clickhouse test case, added a new CDR recipe test case, and introduced a run_test() function for better test management.

Sequence Diagram(s) (Beta)

sequenceDiagram
    participant Developer
    participant GitHub Actions
    participant Test Environment
    Developer->>GitHub Actions: Push changes
    GitHub Actions->>Test Environment: Run `run-tests.sh`
    Test Environment->>GitHub Actions: Execute tests
    GitHub Actions->>Developer: Test results
Loading

Poem

In the land of code, where changes flow,
A variable for Postgres, a new way to grow.
Environment set, with values so neat,
Tests run smoother, a developer's feat.
With scripts refined, and new tests in line,
The future of our dashboard, looking divine.
🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to full the review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between d618d2f and 654f104.
Files selected for processing (21)
  • analytics-datastore-clickhouse/docker-compose.cluster.yml (5 hunks)
  • analytics-datastore-clickhouse/docker-compose.yml (3 hunks)
  • analytics-datastore-clickhouse/package-metadata.json (1 hunks)
  • analytics-datastore-elastic-search/docker-compose.certs.yml (1 hunks)
  • analytics-datastore-elastic-search/docker-compose.cluster.yml (6 hunks)
  • analytics-datastore-elastic-search/docker-compose.yml (2 hunks)
  • analytics-datastore-elastic-search/package-metadata.json (1 hunks)
  • dashboard-visualiser-jsreport/docker-compose.yml (3 hunks)
  • dashboard-visualiser-jsreport/package-metadata.json (1 hunks)
  • dashboard-visualiser-kibana/docker-compose.yml (2 hunks)
  • dashboard-visualiser-kibana/package-metadata.json (1 hunks)
  • dashboard-visualiser-superset/docker-compose.postgres.cluster.yml (1 hunks)
  • dashboard-visualiser-superset/docker-compose.postgres.yml (1 hunks)
  • dashboard-visualiser-superset/package-metadata.json (1 hunks)
  • database-postgres/docker-compose-pgpool.cluster.yml (3 hunks)
  • database-postgres/docker-compose-postgres.cluster.yml (4 hunks)
  • database-postgres/docker-compose-postgres.yml (1 hunks)
  • database-postgres/package-metadata.json (1 hunks)
  • monitoring/docker-compose.cluster.yml (6 hunks)
  • monitoring/docker-compose.yml (5 hunks)
  • monitoring/package-metadata.json (1 hunks)
Files skipped from review due to trivial changes (10)
  • analytics-datastore-clickhouse/docker-compose.yml
  • analytics-datastore-elastic-search/docker-compose.certs.yml
  • analytics-datastore-elastic-search/docker-compose.yml
  • dashboard-visualiser-jsreport/package-metadata.json
  • dashboard-visualiser-kibana/docker-compose.yml
  • dashboard-visualiser-superset/docker-compose.postgres.cluster.yml
  • dashboard-visualiser-superset/docker-compose.postgres.yml
  • database-postgres/docker-compose-pgpool.cluster.yml
  • database-postgres/docker-compose-postgres.cluster.yml
  • database-postgres/docker-compose-postgres.yml
Additional comments not posted (28)
analytics-datastore-clickhouse/package-metadata.json (1)

12-14: Placement variables are correctly defined for node-specific deployment.

dashboard-visualiser-kibana/package-metadata.json (1)

12-12: Ensure the Kibana image reference uses a versioned tag or a digest for better reproducibility.

analytics-datastore-elastic-search/package-metadata.json (2)

21-21: Ensure the Elasticsearch image reference uses a versioned tag or a digest for better reproducibility.


22-24: Placement variables are correctly defined for node-specific deployment.

database-postgres/package-metadata.json (2)

12-12: Ensure the PostgreSQL image reference uses a versioned tag or a digest for better reproducibility.

Verification successful

The usage of versioned tags for the POSTGRES_IMAGE environment variable in both JSON files adheres to best practices for reproducibility, as it avoids the potential issues associated with using mutable tags like 'latest'. While using a digest could further enhance reproducibility by referencing an immutable snapshot of the image, the current versioned tags are sufficient for most practical purposes.

  • database-postgres/package-metadata.json uses bitnami/postgresql-repmgr:14
  • dashboard-visualiser-superset/package-metadata.json uses postgres:16.2
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the POSTGRES_IMAGE is versioned or uses a digest.

# Test: Search for the POSTGRES_IMAGE environment variable usage. Expect: Versioned or digest usage.
rg --type json $'POSTGRES_IMAGE'

Length of output: 216


13-19: Placement variables for PostgreSQL and Pgpool are correctly defined for node-specific deployment.

dashboard-visualiser-superset/package-metadata.json (1)

10-10: Ensure the PostgreSQL image reference uses a versioned tag or a digest for better reproducibility.

Verification successful

The PostgreSQL image references in both database-postgres/package-metadata.json and dashboard-visualiser-superset/package-metadata.json use versioned tags, which aligns with the requirement for better reproducibility mentioned in the review comment. Here are the details:

  • database-postgres/package-metadata.json uses bitnami/postgresql-repmgr:14
  • dashboard-visualiser-superset/package-metadata.json uses postgres:16.2

Both are versioned appropriately, ensuring that the specific versions of the images are used, which aids in achieving reproducible environments.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the POSTGRES_IMAGE is versioned or uses a digest.

# Test: Search for the POSTGRES_IMAGE environment variable usage. Expect: Versioned or digest usage.
rg --type json $'POSTGRES_IMAGE'

Length of output: 216

monitoring/package-metadata.json (2)

9-19: Ensure all image references use versioned tags or digests for better reproducibility.

Verification successful

All image references in the package-metadata.json file use versioned tags or specific release identifiers, ensuring reproducibility as required:

  • GRAFANA_IMAGE: "grafana/grafana-oss:9.2.3"
  • LOKI_IMAGE: "grafana/loki:2.6.1"
  • PROMTAIL_IMAGE: "grafana/promtail:2.6.1"
  • PROMETHEUS_BACKUP_IMAGE: "prom/prometheus:v2.38.0"
  • MINIO_IMAGE: "quay.io/minio/minio:RELEASE.2022-10-24T18-35-07Z"
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that all monitoring images are versioned or use digests.

# Test: Search for the image environment variables usage. Expect: Versioned or digest usage.
rg --type json $'GRAFANA_IMAGE|LOKI_IMAGE|PROMTAIL_IMAGE|PROMETHEUS_BACKUP_IMAGE|MINIO_IMAGE'

Length of output: 526


14-19: Placement variables for Prometheus, Minio, and Prometheus backup are correctly defined for node-specific deployment.

dashboard-visualiser-jsreport/docker-compose.yml (3)

5-5: Ensure the JSReport image reference uses a versioned tag or a digest for better reproducibility.


14-14: Ensure the max replicas per node setting is correctly configured and matches the deployment requirements.


24-31: Configuration labels and environment settings for JSReport are correctly updated to reflect the new standards.

monitoring/docker-compose.cluster.yml (3)

8-8: Ensure the placement constraint for Prometheus is correctly defined and matches the deployment requirements.


12-12: Ensure the Prometheus backup image reference uses a versioned tag or a digest for better reproducibility.


Line range hint 39-104: Placement constraints for Minio instances are correctly defined for node-specific deployment.

analytics-datastore-elastic-search/docker-compose.cluster.yml (3)

Line range hint 5-32: Configuration for analytics-datastore-elastic-search-01 looks good, aligning with best practices for Docker configurations.


Line range hint 55-82: Configuration for analytics-datastore-elastic-search-02 is consistent with the first instance and follows best practices.


Line range hint 105-132: Configuration for analytics-datastore-elastic-search-03 maintains consistency with other instances and adheres to best practices.

analytics-datastore-clickhouse/docker-compose.cluster.yml (4)

5-14: Configuration for analytics-datastore-clickhouse-01 looks good, aligning with best practices for Docker configurations.


39-44: Configuration for analytics-datastore-clickhouse-02 is consistent with the first instance and follows best practices.


73-78: Configuration for analytics-datastore-clickhouse-03 maintains consistency with other instances and adheres to best practices.


112-112: Configuration for analytics-datastore-clickhouse-04 maintains consistency with other instances and adheres to best practices.

monitoring/docker-compose.yml (6)

5-5: Configuration for Grafana service looks good, aligning with best practices for Docker configurations.


74-79: Configuration for Prometheus service is correctly set up with appropriate command line arguments.


100-102: Configuration for cAdvisor service is correctly set up with appropriate command line argument and volume settings.


107-107: Configuration for Loki service looks good, aligning with best practices for Docker configurations.


123-123: Configuration for Promtail service looks good, aligning with best practices for Docker configurations.


142-142: Healthcheck configuration for Minio service is correctly set up, ensuring service availability.

analytics-datastore-clickhouse/package-metadata.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@BMartinos BMartinos left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 654f104 and cf9cf27.
Files selected for processing (1)
  • analytics-datastore-clickhouse/package-metadata.json (1 hunks)
Additional comments not posted (2)
analytics-datastore-clickhouse/package-metadata.json (2)

11-11: Updated CLICKHOUSE_IMAGE to include a version tag, enhancing reproducibility and stability.


12-14: Introduced environment variables for node placements, promoting flexible and configurable deployments.

@bradsawadye bradsawadye marked this pull request as ready for review May 27, 2024 11:25
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 6d44cf0 and dad0440.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (1 hunks)
Additional Context Used
ShellCheck (4)
.github/workflows/run-tests.sh (4)

[info] 35-35: The mentioned syntax error was in this if expression.


[error] 35-35: Couldn't parse this then clause. Fix to allow more checks.


[error] 37-37: Can't have empty then clauses (use 'true' as a no-op).


[error] 37-37: Unexpected keyword/token. Fix any mentioned problems and try again.

Additional comments not posted (1)
.github/workflows/run-tests.sh (1)

36-36: Commented out DOCKER_HOST setting for ClickHouse tests.

Verification successful

The removal of the DOCKER_HOST setting for ClickHouse tests appears to be intentional and does not affect other test configurations.

  • No references to DOCKER_HOST were found in the ClickHouse-related script (analytics-datastore-clickhouse/swarm.sh).
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify if the removal of DOCKER_HOST setting for ClickHouse tests is intentional and does not affect other test configurations.

# Test: Search for any other references to DOCKER_HOST in ClickHouse context.
rg --type sh $'DOCKER_HOST.*clickhouse'

Length of output: 40



Script:

#!/bin/bash
# Description: Verify if the removal of DOCKER_HOST setting for ClickHouse tests is intentional and does not affect other test configurations.

# Test: Search for any references to DOCKER_HOST in the shell script files.
rg --type sh 'DOCKER_HOST'

# Test: Search for any references to clickhouse in the shell script files.
rg --type sh 'clickhouse'

Length of output: 747



Script:

#!/bin/bash
# Description: Extract and review the contents of analytics-datastore-clickhouse/swarm.sh to verify the impact of removing DOCKER_HOST.

# Extract the contents of the swarm.sh file.
cat analytics-datastore-clickhouse/swarm.sh

Length of output: 2292

.github/workflows/run-tests.sh Outdated Show resolved Hide resolved
@bradsawadye bradsawadye marked this pull request as draft May 27, 2024 13:42
@bradsawadye bradsawadye marked this pull request as ready for review May 27, 2024 13:42
@bradsawadye bradsawadye marked this pull request as draft May 27, 2024 13:58
@bradsawadye bradsawadye marked this pull request as ready for review May 27, 2024 13:58
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range and nitpick comments (1)
.github/workflows/run-tests.sh (1)

Line range hint 7-7: Quote variable expansions to prevent word splitting and globbing.

- cd ../../test/cucumber/ || exit
+ cd ../../test/cucumber/"$@" || exit
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between dad0440 and 12e68e7.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (1 hunks)
Additional Context Used
ShellCheck (2)
.github/workflows/run-tests.sh (2)

[warning] 7-7: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.


[warning] 29-29: openhim_ran appears unused. Verify use (or export if used externally).

Additional comments not posted (2)
.github/workflows/run-tests.sh (2)

35-36: Commented out code for clickhouse test case.

This change aligns with the PR's objective to update configurations and environment variables. Ensure that this commented-out section is either removed or replaced with relevant code if no longer needed.


Line range hint 29-29: Verify the use of the variable openhim_ran.

It appears that openhim_ran is declared but not used effectively in the script. Please confirm if this variable is intended for use or if it should be removed.

@bradsawadye bradsawadye marked this pull request as draft May 27, 2024 17:40
@bradsawadye bradsawadye marked this pull request as ready for review May 27, 2024 17:41
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Outside diff range and nitpick comments (1)
.github/workflows/run-tests.sh (1)

Line range hint 38-67: Add the missing 'fi' to close the if statement properly.

+        fi
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 12e68e7 and 295c484.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (3 hunks)
Additional Context Used
ShellCheck (5)
.github/workflows/run-tests.sh (5)

[info] 35-35: The mentioned syntax error was in this for loop.


[error] 38-38: Couldn't find 'fi' for this 'if'.


[error] 38-38: Couldn't parse this if expression. Fix to allow more checks.


[error] 67-67: Expected 'fi' matching previously mentioned 'if'.


[error] 67-67: Unexpected keyword/token. Fix any mentioned problems and try again.

Additional comments not posted (1)
.github/workflows/run-tests.sh (1)

28-30: Ensure the environment variable DOCKER_HOST is correctly set for security and operational consistency.

.github/workflows/run-tests.sh Outdated Show resolved Hide resolved
@bradsawadye bradsawadye marked this pull request as draft May 27, 2024 17:52
@bradsawadye bradsawadye marked this pull request as ready for review May 27, 2024 17:53
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 295c484 and 598cb04.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (3 hunks)
Additional Context Used
ShellCheck (3)
.github/workflows/run-tests.sh (3)

[info] 38-38: The mentioned syntax error was in this if expression.


[error] 40-40: Couldn't parse this elif clause. Fix to allow more checks.


[error] 67-67: Unexpected keyword/token. Fix any mentioned problems and try again.

Additional comments not posted (2)
.github/workflows/run-tests.sh (2)

28-30: New test case for the CDR recipe added correctly.


67-67: Please verify the syntax and logic in this section, as there might be an unexpected keyword or token.

.github/workflows/run-tests.sh Outdated Show resolved Hide resolved
@bradsawadye bradsawadye marked this pull request as draft May 27, 2024 20:22
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Outside diff range and nitpick comments (1)
.github/workflows/run-tests.sh (1)

Line range hint 7-7: Quote the variable expansions to prevent word splitting or globbing issues.

- cd ../../test/cucumber/ || exit
+ cd ../../test/cucumber/ || exit  # Ensure to quote the path if it's variable-driven
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 598cb04 and 2146f4d.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (2 hunks)
Additional Context Used
ShellCheck (2)
.github/workflows/run-tests.sh (2)

[warning] 7-7: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.


[warning] 32-32: openhim_ran appears unused. Verify use (or export if used externally).

Additional comments not posted (1)
.github/workflows/run-tests.sh (1)

28-30: Add a new test case for the CDR recipe.

This addition aligns with the PR's objective to enhance monitoring capabilities for the DataStore dashboards.

.github/workflows/run-tests.sh Outdated Show resolved Hide resolved
@bradsawadye bradsawadye marked this pull request as ready for review May 27, 2024 20:24
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Outside diff range and nitpick comments (2)
.github/workflows/run-tests.sh (2)

28-29: Consider parameterizing the DOCKER_HOST to enhance flexibility and maintainability.

It's good practice to avoid hardcoding values like server addresses directly in scripts. Consider using a variable or a configuration file to set DOCKER_HOST.


Line range hint 7-7: Ensure robust splitting of command line arguments to prevent word splitting/globbing issues.

Consider using mapfile or read -a to handle the splitting of $@ into CHANGED_FILES more robustly. This will prevent issues when filenames contain spaces or special characters.

- CHANGED_FILES=($@)
+ read -ra CHANGED_FILES <<< "$@"
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 2146f4d and 025521b.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (2 hunks)
Additional Context Used
ShellCheck (1)
.github/workflows/run-tests.sh (1)

[warning] 7-7: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.

.github/workflows/run-tests.sh Show resolved Hide resolved
@bradsawadye bradsawadye marked this pull request as draft May 28, 2024 10:31
@bradsawadye bradsawadye marked this pull request as ready for review May 28, 2024 10:31
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 025521b and d2ca67a.
Files selected for processing (1)
  • .github/workflows/run-tests.sh (1 hunks)
Additional Context Used
ShellCheck (2)
.github/workflows/run-tests.sh (2)

[warning] 7-7: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.


[info] 29-29: Double quote to prevent globbing and word splitting.

Additional comments not posted (1)
.github/workflows/run-tests.sh (1)

43-68: Ensure consistency in the use of the run_test function.

The refactoring to use run_test for various test cases is a good practice as it reduces code duplication and improves maintainability. Make sure that all necessary test cases are included and correctly named.

.github/workflows/run-tests.sh Show resolved Hide resolved
.github/workflows/run-tests.sh Show resolved Hide resolved
.github/workflows/run-tests.sh Show resolved Hide resolved
@bradsawadye bradsawadye merged commit 7bde648 into main May 28, 2024
9 checks passed
@bradsawadye bradsawadye deleted the CU-86bygcqxd_Images-Placement-for-DataStore-Dashboards-Monitoring branch May 28, 2024 12:18
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.

5 participants