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

chore: rm mbt, trace tests from CI; fix dependabot #2000

Merged
merged 4 commits into from
Jul 16, 2024
Merged

Conversation

p-offtermatt
Copy link
Contributor

@p-offtermatt p-offtermatt commented Jun 28, 2024

Description

Closes: #N/A

MBT is currently deprecated, and the tests fail regularly starting with the upgrade to Cosmos sdk v50.
Trace tests are doing the same work as e2e tests, so we are disabling them for the time being.

Dependabot configuration was broken a couple weeks ago.

For more context, see #1987 for a brief overview of the future plans for randomized testing.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • Confirmed the correct type prefix in the PR title
  • Confirmed all author checklist items have been addressed
  • Confirmed that this PR does not change production code

Summary by CodeRabbit

  • Chores
    • Removed redundant test-mbt and test-trace jobs from the CI workflow.
    • Adjusted indentation in the .github/dependabot.yml file for better readability.

@p-offtermatt p-offtermatt requested a review from a team as a code owner June 28, 2024 14:42
Copy link
Contributor

coderabbitai bot commented Jun 28, 2024

Walkthrough

Walkthrough

The changes mainly involve removing jobs related to testing from the GitHub Actions workflow file (.github/workflows/test.yml). Specifically, the jobs test-mbt and test-trace have been removed, which were responsible for setting up environments, running various tests, and archiving artifacts. Additionally, there is a minor formatting adjustment in the .github/dependabot.yml file that does not affect functionality.

Changes

File Change Summary
.github/workflows/test.yml Removed test-mbt and test-trace jobs that set up environments, ran tests based on Git diffs, and archived artifacts.
.github/dependabot.yml Adjusted indentation of the package-ecosystem field for better formatting without impacting functionality.

Sequence Diagram(s)

No sequence diagram is necessary as the changes are primarily removals and formatting adjustments that do not impact the control flow or introduce new features.


Recent review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 5031381 and 54d3a2e.

Files selected for processing (1)
  • .github/workflows/test.yml (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/test.yml

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

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

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 an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the C:CI Assigned automatically by the PR labeler label Jun 28, 2024
Copy link
Contributor

@insumity insumity left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@p-offtermatt p-offtermatt changed the base branch from release/v5.1.x to main July 4, 2024 11:13
@p-offtermatt p-offtermatt changed the base branch from main to release/v5.1.x July 4, 2024 11:14
@p-offtermatt p-offtermatt changed the base branch from release/v5.1.x to main July 15, 2024 12:03
@p-offtermatt p-offtermatt changed the base branch from main to release/v5.1.x July 15, 2024 12:04
@MSalopek MSalopek changed the base branch from release/v5.1.x to main July 16, 2024 14:03
@MSalopek MSalopek changed the title chore: Remove mbt from the CI chore: Remove mbt and trace tests from the CI Jul 16, 2024
@MSalopek MSalopek changed the title chore: Remove mbt and trace tests from the CI chore: Remove mbt and trace tests from CI Jul 16, 2024
Copy link
Contributor

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
.github/workflows/test.yml (1)

Line range hint 51-71: Dependency on test-mbt needs removal.

The repo-analysis job still lists test-mbt as a dependency. This should be removed as part of the MBT deprecation.

-    needs: [tests, test-integration, test-mbt]
+    needs: [tests, test-integration]

@MSalopek MSalopek changed the title chore: Remove mbt and trace tests from CI chore: rm mbt, trace tests from CI; fix dependabot Jul 16, 2024
Copy link
Contributor

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (3)
.github/workflows/test.yml (3)

Line range hint 104-104: Potential issue: Orphan job dependency.

The repo-analysis job lists test-mbt in its needs attribute. Since test-mbt is being removed, this reference should also be updated to prevent workflow errors.

- needs: [tests, test-integration, test-mbt]
+ needs: [tests, test-integration]

Line range hint 133-142: Check for potential unused artifacts.

The repo-analysis job attempts to download an artifact named "${{ github.sha }}-mbt-coverage". With the removal of the test-mbt job, this artifact will no longer be produced, and this step will always fail, even with continue-on-error set to true. Consider removing or modifying this step.

- - uses: actions/download-artifact@v4
-   if: env.GIT_DIFF
-   with:
-     name: "${{ github.sha }}-mbt-coverage"
-   continue-on-error: true

Remove the model-analysis job from the workflow.

The model-analysis job is part of the MBT framework, as it includes steps that reference tests/mbt/model/**.qnt and involves verifying models. Since the MBT framework is being removed, this job should be removed as well.

  • File: .github/workflows/test.yml
  • Lines: 174-187
Analysis chain

Line range hint 174-187: Review the model-analysis job.

This job seems to be related to model testing and might be part of the MBT framework. Verify if this job should also be removed or modified in the context of removing MBT from the workflow.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if the model-analysis job is related to the MBT framework and should be removed.

# Test: Search for mentions of `model-analysis` in related documentation or code comments.
rg --type markdown -A 5 "model-analysis"

Length of output: 40


Script:

#!/bin/bash
# Description: Search for the model-analysis job in the YAML workflow files to understand its context.

# Test: Search for mentions of `model-analysis` in the .github/workflows directory.
rg "model-analysis" .github/workflows/*.yml -A 10

Length of output: 1061


Script:

#!/bin/bash
# Description: Search for the complete model-analysis job definition in the .github/workflows/test.yml file.

# Test: Extract the full job definition for `model-analysis` to understand its context.
rg "model-analysis:" .github/workflows/test.yml -A 50

Length of output: 648

@sainoe sainoe added this pull request to the merge queue Jul 16, 2024
Merged via the queue into main with commit eb93342 Jul 16, 2024
11 checks passed
@sainoe sainoe deleted the ph/remove-mbt-from-ci branch July 16, 2024 15:13
mergify bot pushed a commit that referenced this pull request Jul 16, 2024
* Remove MBT from pipeline

* chore: disable trace tests

* cleanup dependabot

* cleanup test

---------

Co-authored-by: MSalopek <[email protected]>
(cherry picked from commit eb93342)

# Conflicts:
#	.github/dependabot.yml
#	.github/workflows/test.yml
sainoe pushed a commit that referenced this pull request Jul 17, 2024
…2039)

* Remove MBT from pipeline

* chore:  rm mbt, trace tests from CI; fix dependabot (#2000)

* Remove MBT from pipeline

* chore: disable trace tests

* cleanup dependabot

* cleanup test

---------

Co-authored-by: MSalopek <[email protected]>
(cherry picked from commit eb93342)

# Conflicts:
#	.github/dependabot.yml
#	.github/workflows/test.yml

* Fix merge

---------

Co-authored-by: Philip Offtermatt <[email protected]>
Co-authored-by: Philip Offtermatt <[email protected]>
insumity pushed a commit that referenced this pull request Jul 23, 2024
* Remove MBT from pipeline

* chore: disable trace tests

* cleanup dependabot

* cleanup test

---------

Co-authored-by: MSalopek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v5.2.x C:CI Assigned automatically by the PR labeler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants