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

No branch or tag or commit found with given target master #2823

Open
skarllot opened this issue Jan 7, 2024 · 5 comments · May be fixed by #2124
Open

No branch or tag or commit found with given target master #2823

skarllot opened this issue Jan 7, 2024 · 5 comments · May be fixed by #2124
Labels

Comments

@skarllot
Copy link

skarllot commented Jan 7, 2024

Describe the bug
Stryker is failing since 3.13.1 version.

Logs

[13:24:19 INF] Time Elapsed 00:04:53.5105569
Stryker.NET failed to mutate your project. For more information see the logs 
below:


No branch or tag or commit found with given target master. Please provide a 
different GitDiffTarget.

Full log: https://github.com/skarllot/Expressions/actions/runs/7438496458/job/20237310858#step:7:141

Expected behavior
Run without errors.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS
  • Type of project Library
  • Framework Version .NET 6.0
  • Stryker Version 3.13.1

Additional context
It runs without errors with the since configuration.

Ref: https://github.com/skarllot/Expressions/actions/runs/7438496458/job/20237310858#step:8:168

@skarllot skarllot added the 🐛 Bug Something isn't working label Jan 7, 2024
@rouke-broersma
Copy link
Member

rouke-broersma commented Jan 8, 2024

@skarllot stryker by default uses the branch called master for the since feature. Your repo does not have a master branch. You should set the target to main instead.

@rouke-broersma
Copy link
Member

@skarllot

The reason you didn't hit this issue before is because since was never actually enabled in your repo due to #2706. This was recently fixed which enabled since and caused your pipeline to stop working.

Please let me know if you have any other issues after adding the since compare target.

@skarllot
Copy link
Author

skarllot commented Jan 8, 2024

Enabling since doesn't make it always run only for changed code?

@rouke-broersma
Copy link
Member

rouke-broersma commented Jan 8, 2024

Enabling since doesn't make it always run only for changed code?

It does, but there was a bug where since was not enabled implicitly by creating the object in the config file (instead you had to set since.enabled to true). That has now been fixed so now since is actually running on your project. If you read the issue I linked I think it will be more clear what went wrong before.

@dupdob dupdob added 🚀 Feature request New feature or request 📃 Documentation and removed 🐛 Bug Something isn't working labels Jan 11, 2024
@dupdob
Copy link
Member

dupdob commented Jan 11, 2024

I updated the issue tags to reflect this it is not an issue per se, but documentation/error messages could be made more helpful

@rouke-broersma rouke-broersma linked a pull request Mar 15, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants