Skip to content

Testing#36

Closed
Nahomtes wants to merge 4 commits intodevelopfrom
testing_setup
Closed

Testing#36
Nahomtes wants to merge 4 commits intodevelopfrom
testing_setup

Conversation

@Nahomtes
Copy link

This pull request introduces automated CI/CD workflows for building and Testing. The main changes include adding GitHub Actions workflows for building Docker images and running tests, updating the project name and version, and enhancing the test scripts using Jest

Copy a build workflow from Main branch that builds a Docker image, scans it for vulnerabilities with Trivy, tags the image, pushes it to Amazon ECR, and sends a Slack notification. The workflow supports environment selection and configurable failure on vulnerability scan.
Introduces a test workflow that runs on pushes, pull requests, and manual triggers. The workflow sets up Node.js, installs dependencies, runs tests, and uploads coverage reports to Coveralls.
Upgraded multiple @aws-sdk packages and related dependencies to version 3.954.0 and updated peer dependencies accordingly. Also removed @ampproject/remapping and added new AWS SDK modules to improve compatibility and maintain support for the latest Node.js versions.
Renamed the project to 'crdc-ctdc-files' and updated the version to 1.1.0. Added new test scripts for Jest, including CI and coverage options.
@coderabbitai
Copy link

coderabbitai bot commented Dec 23, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch testing_setup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Nahomtes Nahomtes requested a review from Copilot December 23, 2025 22:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR establishes automated CI/CD infrastructure for the file service, transitioning from "bento-files" to "crdc-ctdc-files" with version 1.1.0. The changes introduce comprehensive testing and build automation workflows.

Key changes:

  • Updated project metadata (name and version) and added Jest-based test scripts
  • Created GitHub Actions workflow for automated testing with coverage reporting
  • Created GitHub Actions workflow for Docker image building with security scanning and ECR deployment

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
package.json Updated project name/version and added Jest test scripts for local and CI environments
.github/workflows/test.yml Added automated testing workflow with Node.js setup and Coveralls integration
.github/workflows/build.yml Added Docker build workflow with Trivy scanning, ECR deployment, and Slack notifications

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

run: |
# Get all tags for the repo and find the latest tag for the branch being built
git fetch --tags --force --quiet
tag=$(git tag -l $BRANCH_NAME* | tail -1)
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The variable $BRANCH_NAME is not quoted, which will cause word splitting and glob expansion if the branch name contains spaces or special characters. Wrap the variable in double quotes: \"$BRANCH_NAME*\"

Suggested change
tag=$(git tag -l $BRANCH_NAME* | tail -1)
tag=$(git tag -l "$BRANCH_NAME"* | tail -1)

Copilot uses AI. Check for mistakes.
# Get all tags for the repo and find the latest tag for the branch being built
git fetch --tags --force --quiet
tag=$(git tag -l $BRANCH_NAME* | tail -1)
if [ ! -z "$tag" ];
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

Using -z to check for empty strings should be used without negation for clarity. Instead of [ ! -z \"$tag\" ], use [ -n \"$tag\" ] to check if the variable is non-empty.

Suggested change
if [ ! -z "$tag" ];
if [ -n "$tag" ];

Copilot uses AI. Check for mistakes.
@Nahomtes Nahomtes closed this Dec 23, 2025
@Nahomtes Nahomtes deleted the testing_setup branch December 23, 2025 22:18
@Nahomtes Nahomtes changed the title Testing setup for File Service Testing Dec 23, 2025
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