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

Fix cbmc-viewer ci issues with Mac11 #1844

Merged
merged 7 commits into from
Nov 3, 2022
Merged

Conversation

jaisnan
Copy link
Contributor

@jaisnan jaisnan commented Nov 3, 2022

Description of changes:

CI is broken because of an issue in actions - actions/runner-images#6507. This is a patch to fix viewer installation in mac os till the issue is fixed.

Call-outs:

We aren't specifying version number with Mac because that breaks the CI. Brew is unable to recognize specific version numbers of CBMC-Viewer and can only install the latest version.

Testing:

  • How is this change tested? Regression and CI in fork

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@jaisnan jaisnan requested a review from a team as a code owner November 3, 2022 20:29
set -x

# brew doesn't recognize specific versions of viewer
brew install aws/tap/cbmc-viewer
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this always set at this point? Where is this tap added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

brew install repo mitigates the need to add a tap but I could make that more explicit if it's safer.


set -x

# brew doesn't recognize specific versions of viewer
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we likely to care? Should we ask the tap owners to keep pinned versions in the tap?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't imagine this becoming a problem since viewer isn't updated that often and also brew install installs the latest version of viewer anyway. This patch is also just temporary I imagine, till the issue in github-actions gets fixed or till we find a way to add a path to pip install. This was just the quickest solution, to get everyone's PR's unblocked by CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the issue that's causing ci to break, I imagine - actions/runner-images#6507.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we push the fix to unblock us and we can figure out a better long term plan later? If actions/runner-images#6507 gets fixed, we could probably just revert these changes.

# Install cbmc-viewer

# Source kani-dependencies to get CBMC_VIEWER_VERSION
source kani-dependencies
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're not installing a specific version, then we shouldn't need to source kani-dependencies.

Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

We should figure out later what we want to do in the long term, but it looks like this will unblock us.

@jaisnan jaisnan merged commit b1bf119 into model-checking:main Nov 3, 2022
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.

4 participants