Skip to content

Foundry test ux/master#65

Closed
Dargon789 wants to merge 2 commits into
masterfrom
Foundry-test-UX/master
Closed

Foundry test ux/master#65
Dargon789 wants to merge 2 commits into
masterfrom
Foundry-test-UX/master

Conversation

@Dargon789
Copy link
Copy Markdown
Owner

@Dargon789 Dargon789 commented Sep 13, 2025

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Summary by Sourcery

Enhance continuous integration workflows by adding a commit message skip flag to the GitHub Actions docs deployment and introducing a basic CircleCI 2.1 configuration.

CI:

  • Add commit_message parameter to GitHub Actions gh-pages deploy step to skip CI on documentation commits
  • Introduce a CircleCI 2.1 configuration with a sample say-hello job

Dargon789 added 2 commits May 25, 2025 23:26
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Sep 13, 2025

Reviewer's Guide

This PR enhances the CI/CD setup by customizing the GitHub Actions deployment step and introducing a minimal CircleCI pipeline.

File-Level Changes

Change Details Files
Customize GitHub Pages deployment workflow
  • added commit_message to gh-pages action
  • aligned indentation of workflow keys
.github/workflows/test.yml
Add a basic CircleCI configuration
  • initialized version 2.1 pipeline
  • defined say-hello job with docker executor and steps
  • set up a simple workflow to run the job
.circleci/ci.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @Dargon789, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request establishes a foundational continuous integration setup for the repository by adding a new CircleCI configuration file. It defines a minimal workflow with a basic job, serving as an initial step towards automating build and test processes.

Highlights

  • New CI Configuration: This pull request introduces a new CircleCI configuration file (.circleci/ci.yml) to the repository, laying the groundwork for continuous integration.
  • Basic 'Hello, World!' Job: The initial CircleCI setup includes a simple say-hello job that checks out the repository and prints 'Hello, World!' to the console, demonstrating a functional CI step.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Sep 13, 2025

🎉 Snyk checks have passed. No issues have been found so far.

code/snyk check is complete. No issues have been found. (View Details)

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR adds a basic CircleCI configuration. My main feedback is to pin the Docker image to a specific version to ensure reproducible builds, which is a critical best practice for CI/CD pipelines. I've also included a suggestion with ideas for expanding this into a more complete CI pipeline for a Rust project, covering naming conventions and typical build/test steps.

Comment thread .circleci/ci.yml
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

For reproducible builds, it's a best practice to pin the Docker image to a specific version instead of using current. The current tag can change unexpectedly and break your CI pipeline. Since this appears to be a Rust project, you might also consider using a Rust-specific image like cimg/rust:1.75.0 which comes with the toolchain pre-installed.

      - image: cimg/base:2024.01

Comment thread .circleci/ci.yml
Comment on lines +7 to +31
jobs:
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current

# Add steps to the job
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
workflows:
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- say-hello
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This is a good starting point. As you build out the CI, consider making the following improvements for clarity and completeness:

  • Descriptive Naming: Rename the job say-hello and workflow say-hello-workflow to something more descriptive, like build_and_test and main.
  • Remove Boilerplate: The template comments can be removed to make the configuration cleaner.
  • Add Build Steps: Replace the echo command with actual build, lint, and test commands for your Rust project.

For example, your job could look something like this:

  build_and_test:
    docker:
      - image: cimg/rust:1.75.0
    steps:
      - checkout
      - run:
          name: "Check formatting"
          command: "cargo fmt --all -- --check"
      - run:
          name: "Run Clippy"
          command: "cargo clippy --all-targets -- -D warnings"
      - run:
          name: "Run tests"
          command: "cargo test --all-features"

@Dargon789 Dargon789 closed this Sep 13, 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.

1 participant