Skip to content

ci: ignore pyasn1 major updates to prevent vivisect breaks#2899

Open
MShantanu110 wants to merge 1 commit intomandiant:masterfrom
MShantanu110:fix-dependabot-vivisect
Open

ci: ignore pyasn1 major updates to prevent vivisect breaks#2899
MShantanu110 wants to merge 1 commit intomandiant:masterfrom
MShantanu110:fix-dependabot-vivisect

Conversation

@MShantanu110
Copy link

Description

Discussion in the issue, grouping vivisect and pyasn1 in the Dependabot config wasn't enough to stop the CI breaks because vivisect hasn't caught up to the breaking changes in pyasn1 0.6.x yet.

Instead of hardcoding project metadata or adding custom pip check pipeline steps which adds technical debt, this PR simply adds an ignore rule for pyasn1 >= 0.6.0 to the .github/dependabot.yml file. This is a clean, minimal fix that respects the existing dependency boundaries and stops the CI from failing on versions vivisect can't support yet.

closes #2826

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed
  • [] This submission includes AI-generated code and I have provided details in the description.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 resolves persistent CI failures by preventing Dependabot from proposing major version updates for the pyasn1 library that are incompatible with the vivisect dependency. By adding a specific ignore rule in the Dependabot configuration, the project avoids breaking changes and maintains CI stability without introducing additional technical debt or modifying core project dependencies.

Highlights

  • Dependabot Configuration: Modified Dependabot configuration to ignore major version updates for the pyasn1 dependency (specifically versions >= 0.6.0). This change prevents continuous integration (CI) failures caused by pyasn1's breaking changes that are incompatible with the vivisect dependency.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .github/dependabot.yml
    • Updated the Dependabot configuration to ignore pyasn1 updates for versions 0.6.0 and above.
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.

Copy link
Contributor

@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 pull request updates the dependabot configuration to ignore updates for pyasn1 version 0.6.0 and higher, which is causing CI breaks. The change is correct for the stated purpose. However, it also removes a rule that was ignoring all patch-level updates for all dependencies. I've added a comment to highlight this side-effect and suggested a modification to make the intent clearer and avoid a potential flood of new dependabot PRs if this was unintentional.

Comment on lines +15 to +16
- dependency-name: "pyasn1"
versions: ">= 0.6.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This change also removes the rule to ignore all patch-level updates. This is a significant change that will re-enable patch updates for all dependencies, potentially leading to a large number of new pull requests from Dependabot. While enabling patch updates is a good practice, the PR description only mentions ignoring pyasn1. To avoid unintended side-effects, consider keeping both ignore rules if the goal was only to address the pyasn1 issue.

      - dependency-name: "pyasn1"
        versions: ">= 0.6.0"
      - dependency-name: "*"
        update-types: ["version-update:semver-patch"]

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.

CI: dependabot pyasn updates

1 participant