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

Tenscan workflow #1724

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Tenscan workflow #1724

merged 1 commit into from
Dec 27, 2023

Conversation

otherview
Copy link
Contributor

Why this change is needed

As per title - required to merge in first so we can test the deployments.

What changes were made as part of this PR

Please provide a high level list of the changes made

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Copy link

coderabbitai bot commented Dec 27, 2023

Walkthrough

The GitHub workflow for deploying the Tenscan Testnet has undergone a rebranding from its previous version 3. The naming conventions have been streamlined to reflect the updated branding, affecting the workflow's name, run-name, Docker build paths, and Azure Container Instances configuration. The changes indicate a shift from "obscuroscan_v3" to a simpler "tenscan" nomenclature, likely to align with a new version or branding strategy.

Changes

File Path Change Summary
.github/workflows/manual-deploy-ten-scan.yml Updated workflow and run names, Docker paths, and Azure configurations.
./tools/.../frontend/Dockerfile Changed Docker build path from obscuroscan_v3 to tenscan.
./tools/.../backend/Dockerfile Changed Docker build path from obscuroscan_v2 to tenscan.
Azure Container Instances Configuration Updated DNS name labels and instance names to use ten-scan.

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 with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file
    • @coderabbitai modularize this function
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Examples:
    • @coderabbitai gather interesting statistics about this repository and render them in a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai generate unit tests for the src/utils.ts file.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link

@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.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 520ea1e and 56b3c6a.
Files selected for processing (1)
  • .github/workflows/manual-deploy-ten-scan.yml (3 hunks)
Additional comments: 5
.github/workflows/manual-deploy-ten-scan.yml (5)
  • 4-5: The workflow name and run-name have been updated to reflect the new Tenscan branding. This change is consistent with the PR objectives and AI-generated summary.

  • 61-61: The DNS name label for the frontend service in Azure Container Instances has been updated to include 'ten-scan'. Confirm that this new DNS name label is correctly configured in Azure and does not conflict with existing services.

  • 63-63: The instance name for the frontend service in Azure Container Instances has been updated to include 'ten-scan'. Verify that this new instance name is unique and does not cause conflicts with existing instances.

  • 76-76: The DNS name label for the backend API service in Azure Container Instances has been updated to include 'api-ten-scan'. As with the frontend, ensure that this new DNS name label is correctly configured and does not overlap with other services.

  • 78-78: The instance name for the backend API service in Azure Container Instances has been updated to include 'api-ten-scan'. Confirm that this new instance name is properly unique within the Azure environment.

@@ -46,21 +46,21 @@ jobs:

- name: Build and Push Docker FE Image
run: |
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/obscuroscan_v3/frontend/Dockerfile .
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/tenscan/frontend/Dockerfile .
Copy link

Choose a reason for hiding this comment

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

💡 NOTE
Codebase verification is a beta feature.

The verification script has confirmed that the Dockerfile for the frontend does not exist at the specified path ./tools/tenscan/frontend/Dockerfile. This indicates an issue with the updated Docker build path in the pull request.

  • : The Docker build path for the frontend in the .github/workflows/manual-deploy-ten-scan.yml file points to a non-existent Dockerfile at ./tools/tenscan/frontend/Dockerfile.
Analysis chain

The Dockerfile path for the frontend image build has been updated to the new tenscan directory. Ensure that the new path is correct and the Dockerfile exists at this location.


Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the existence of the frontend Dockerfile in the tenscan directory.
fd Dockerfile --exec test -f ./tools/tenscan/frontend/Dockerfile

Length of output: 462



Script:

#!/bin/bash
# Corrected script to verify the existence of the frontend Dockerfile in the tenscan directory.
if [ -f "./tools/tenscan/frontend/Dockerfile" ]; then
  echo "Frontend Dockerfile exists."
else
  echo "Frontend Dockerfile does not exist."
fi

Length of output: 129

docker push ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }}

- name: Build and Push Docker API Image
run: |
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_API }} -f ./tools/obscuroscan_v2/backend/Dockerfile .
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_API }} -f ./tools/tenscan/backend/Dockerfile .
Copy link

Choose a reason for hiding this comment

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

💡 NOTE
Codebase verification is a beta feature.

The verification process has confirmed that the backend Dockerfile does not exist at the specified path ./tools/tenscan/backend/Dockerfile. This information should be communicated to the user.

  • The Dockerfile for the backend in the tenscan directory does not exist.
Analysis chain

The Dockerfile path for the backend image build has been updated to the new tenscan directory. Similar to the frontend Dockerfile, verify that the Dockerfile for the backend exists at the specified path.



Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the existence of the backend Dockerfile in the tenscan directory.
fd Dockerfile --exec test -f ./tools/tenscan/backend/Dockerfile

Length of output: 461



Script:

#!/bin/bash
# Find the Dockerfile in the tenscan/backend directory and verify its existence.
fd Dockerfile ./tools/tenscan/backend/ | xargs -I {} test -f {} && echo "Dockerfile exists" || echo "Dockerfile does not exist"

Length of output: 226



Script:

#!/bin/bash
# Directly check for the existence of the backend Dockerfile in the tenscan directory.
if [ -f ./tools/tenscan/backend/Dockerfile ]; then
  echo "Backend Dockerfile exists."
else
  echo "Backend Dockerfile does not exist."
fi

Length of output: 126

Copy link
Contributor

@zkokelj zkokelj left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@otherview otherview merged commit 5cd64e8 into main Dec 27, 2023
1 of 2 checks passed
@otherview otherview deleted the pedro/merge_new_tenscan_flow branch December 27, 2023 16:13
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