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

feat: test_programs that are invisible to git now pass #5035

Closed
wants to merge 1 commit into from

Conversation

michaeljklein
Copy link
Contributor

Description

Problem*

Resolves the spurious errors that occur when moving/merging branches and accumulating test_programs packages that are invisible to git, e.g. they only contain a Verifier.toml

Summary*

Previously, we were failing with ~No Nargo.toml found, but often we have cases where there are no .nr files or other files visible to git. This PR recognizes those cases and skips the running the rest of the CLI command.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

…for compile_success_empty, add skipping for compile_failure (skips generating test), add error for this case, catch that error instead of throwing it with a non-zero exit code, add is_package_visible_to_git, add test program w/ .gitignore exception to test this, add expected failure to prevent regressions, add 'target' dir case
@TomAFrench
Copy link
Member

Discussed in scrum that we can probably simplify this to deleting any folder which don't contain a Nargo.toml or src/main.nr (need to be careful on the second one as we have a couple of workspaces/libraries).

github-merge-queue bot pushed a commit that referenced this pull request May 22, 2024
#5081)

# Description

## Problem\*

Closes #5035

## Summary\*

Alternative to #5035 which just deletes any test programs which don't
have a Nargo.toml file.

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
github-merge-queue bot pushed a commit that referenced this pull request May 22, 2024
#5081)

# Description

## Problem\*

Closes #5035

## Summary\*

Alternative to #5035 which just deletes any test programs which don't
have a Nargo.toml file.

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
@TomAFrench TomAFrench deleted the michaeljklein/succeed-on-gitignored branch November 20, 2024 12:03
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.

2 participants