Skip to content

Alert fix 3471#243

Closed
Dargon789 wants to merge 4 commits into
masterfrom
alert-fix-3471
Closed

Alert fix 3471#243
Dargon789 wants to merge 4 commits into
masterfrom
alert-fix-3471

Conversation

@Dargon789

@Dargon789 Dargon789 commented Oct 21, 2025

Copy link
Copy Markdown
Owner

Summary by Sourcery

Revamp CI pipelines by simplifying VM workflows, standardizing Node.js setup, correcting Docker and Codecov actions, overhauling issue templates, and adding new deployment and tooling configurations

Enhancements:

  • Replace workflow_call trigger in VM PR workflow with pull_request events and unify Node.js setup to v18 across all VM jobs
  • Remove manual cache restoration logic, simplify checkout and install steps, add lint step, and update codecov-action to v3
  • Fix Docker build-push action tag syntax and conditions in docker-image workflow

CI:

  • Add GitHub Actions workflows for deploying Next.js, mdBook, and Jekyll sites to GitHub Pages
  • Introduce basic CircleCI configuration and devcontainer setup for consistent development environments

Documentation:

  • Clear default labels in all package issue templates and add unified bug report, feature request, and custom templates

Dargon789 added 3 commits May 5, 2025 23:33
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
@codesandbox

codesandbox Bot commented Oct 21, 2025

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel

vercel Bot commented Oct 21, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ethereumjs-monorepo-1 Canceled Canceled Oct 21, 2025 3:51pm
ethereumjs-monorepo-zmjp Error Error Oct 21, 2025 3:51pm

@sourcery-ai

sourcery-ai Bot commented Oct 21, 2025

Copy link
Copy Markdown

Reviewer's Guide

This PR streamlines and modernizes the project’s CI and workflow configuration by refactoring the VM PR pipeline, fixing the Docker build workflow, standardizing issue template labels, and introducing new sample deployment workflows alongside a development container setup.

Flow diagram for refactored VM PR workflow steps

flowchart TD
  Checkout["actions/checkout@v4 (with submodules)"] --> SetupNode["actions/setup-node@v4 (Node 18, npm cache)"]
  SetupNode --> InstallDeps["npm ci"]
  InstallDeps --> Lint["npm run lint"]
  Lint --> Coverage["npm run coverage"]
  Coverage --> Codecov["codecov/codecov-action@v3"]
Loading

File-Level Changes

Change Details Files
Simplified and refactored VM PR workflow
  • Replaced workflow_call trigger with pull_request events
  • Removed input-based cache and conditional checkout logic
  • Unified checkout, setup-node@v4 to Node.js 18, npm ci, lint, coverage steps
  • Updated concurrency group naming and downgraded codecov action to v3
.github/workflows/vm-pr.yml
Corrected Docker image workflow configuration
  • Fixed Build & Push step indentation and naming
  • Updated docker/build-push-action to v5 and corrected tag syntax
.github/workflows/docker-image.yml
Cleared default labels in GitHub issue templates
  • Removed hard-coded package labels
  • Standardized labels field to empty for all templates
.github/ISSUE_TEMPLATE/package--*.md
Added new CI/deployment workflows and devcontainer configuration
  • Introduced Next.js, mdBook, and Jekyll GitHub Pages workflows
  • Added CircleCI say-hello pipeline and new bug/feature/custom issue templates
  • Included .devcontainer/devcontainer.json for consistent development environments
.github/workflows/nextjs.yml
.github/workflows/mdbook.yml
.github/workflows/jekyll-gh-pages.yml
.circleci/config.yml
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/custom.md
.devcontainer/devcontainer.json

Possibly linked issues


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

@gemini-code-assist

Copy link
Copy Markdown

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 focuses on enhancing the project's development and collaboration infrastructure. It establishes foundational continuous integration with CircleCI, standardizes the local development environment using DevContainers for Hardhat projects, and refines the issue reporting process with new and updated GitHub issue templates. These changes contribute to a more robust and consistent workflow for contributors.

Highlights

  • CI/CD Configuration: A new CircleCI configuration file (.circleci/config.yml) has been added, introducing a basic 'say-hello' job to establish continuous integration for the repository.
  • Development Container Setup: A DevContainer configuration (.devcontainer/devcontainer.json) has been introduced to standardize the development environment, specifically for Hardhat projects, including Node.js 18 and essential VSCode extensions like Prettier and Hardhat Solidity.
  • GitHub Issue Templates Refinement: New GitHub issue templates for bug reports, feature requests, and custom issues have been added. Additionally, existing package-specific issue templates have been updated to remove their default 'package:' labels, standardizing the label field to be empty.
  • Dependency Updates: Several development dependencies in package-lock.json have been updated, including tinyglobby from 0.2.12 to 0.2.13, fdir from 6.4.3 to 6.4.4, and vite from 6.3.2 to 6.3.4.
Ignored Files
  • Ignored by pattern: .github/workflows/** (5)
    • .github/workflows/docker-image.yml
    • .github/workflows/jekyll-gh-pages.yml
    • .github/workflows/mdbook.yml
    • .github/workflows/nextjs.yml
    • .github/workflows/vm-pr.yml
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

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 found some issues that need to be addressed.

  • This PR mixes a large set of unrelated workflow, template, and CI changes—consider splitting it into smaller, focused PRs so each change can be reviewed and reverted independently.
  • You’ve removed caching and submodule restore steps from the VM workflows, which could drastically slow down CI runs—please reintroduce equivalent caching or verify the performance impact.
  • The downgrade from Node.js 20 to 18 and clearing all issue-template labels could break existing environments and automations—ensure those changes are validated before merging.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- This PR mixes a large set of unrelated workflow, template, and CI changes—consider splitting it into smaller, focused PRs so each change can be reviewed and reverted independently.
- You’ve removed caching and submodule restore steps from the VM workflows, which could drastically slow down CI runs—please reintroduce equivalent caching or verify the performance impact.
- The downgrade from Node.js 20 to 18 and clearing all issue-template labels could break existing environments and automations—ensure those changes are validated before merging.

## Individual Comments

### Comment 1
<location> `.github/workflows/docker-image.yml:47` </location>
<code_context>
-          tags: ghcr.io/${{ github.repository_owner }}/ethereumjs-monorepo:latest
-          provenance: false
\ No newline at end of file
+          tags: ghcr.io/${{ github.repository_owner/ethereumjs-monorepo:latest
+          provenance: false
</code_context>

<issue_to_address>
**issue (bug_risk):** Malformed Docker tag syntax may cause build or push failures.

The tag should be corrected to: 'ghcr.io/${{ github.repository_owner }}/ethereumjs-monorepo:latest'.
</issue_to_address>

### Comment 2
<location> `.github/workflows/mdbook.yml:37` </location>
<code_context>
+      - uses: actions/checkout@v4
+      - name: Install mdBook
+        run: |
+          curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
+          rustup update
+          cargo install --version ${MDBOOK_VERSION} mdbook
</code_context>

<issue_to_address>
**issue (bug_risk):** The rustup installation script uses the '-y' flag, which is not supported.

Remove the '-y' flag from the rustup installation command to prevent failures and follow the recommended installation procedure.
</issue_to_address>

### Comment 3
<location> `.github/workflows/mdbook.yml:43-44` </location>
<code_context>
+        id: pages
+        uses: actions/configure-pages@v5
+      - name: Build with mdBook
+        run: mdbook build
+      - name: Upload artifact
+        uses: actions/upload-pages-artifact@v3
</code_context>

<issue_to_address>
**suggestion (bug_risk):** mdbook may not be in PATH after installation via cargo.

Add '$HOME/.cargo/bin' to PATH before running 'mdbook build' to ensure the command is available.

```suggestion
      - name: Build with mdBook
        run: |
          export PATH="$HOME/.cargo/bin:$PATH"
          mdbook build
```
</issue_to_address>

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.

Comment thread .github/workflows/mdbook.yml Outdated
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several improvements to the project's CI/CD and development workflow. It adds a basic CircleCI configuration, a devcontainer setup for a consistent development environment, and new standardized GitHub issue templates. The changes to existing issue templates to remove default labels are also included. My review focuses on the new CircleCI configuration, where I've suggested pinning the Docker image to a specific version to ensure build reproducibility. The other changes look good.

Comment thread .circleci/config.yml
@Dargon789 Dargon789 enabled auto-merge (squash) October 21, 2025 15:23

@Dargon789 Dargon789 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Alert fix 3471#243
Preview

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