-
-
Notifications
You must be signed in to change notification settings - Fork 10
[DependencyUpdater] Allow to run from different organizations #42
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
[DependencyUpdater] Allow to run from different organizations #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. Let's have this into production.
A suggestion for future PRs: changes should be atomic. For a number of reasons.
- They can be reverted easily
- They tend to introduce less changes and review it's easier
- The title is honored and clearly describe the changes made.
Ideally this would have made 2 PRs: one for what the title is 😄 and another with the code refactoring (which is welcomed, of course).
Running Unit Tests on the pipeline it's mandatory. We're using MSTest on all other repos, but I guess it's OK to use xUnit here. |
I'll migrate to MSTest, better to use one framework. |
New changes: |
@torbacz looks good. Are you planing to add the unit test running on the pipeline, or would you prefer that I handle that? |
@josesimoes
|
Brilliant!
Let go with just Unit Tests. It's already an improvent.
That's the yaml for AZDO and yes, the job for building dependecy updater starts at line 193 (as you've figured it out).
That's the place. To save you some work: you can find most of the bits for this on yaml template on this repo on a template for the class build. |
…her repositories than "nanoframework"
Refactored code to be more readable.
@josesimoes |
Nothing wrong. Seems that there is an issue with the yaml format... I believe that's because you can't have multiple wildcards in the path. (line 238). You can check the pipeline log if you click on the check above. Here it is: |
@torbacz the pipeline it's happy now! It's reporting that no code coverage results where found. Please check if that's a matter of path or those not being generated. If needed, just remove that task. |
And it's also complaining about |
@josesimoes I missed one step in pipeline to generate valid code coverage report, which is now added, but the tool is missing in you organization. So we can:
Let me know, which approach is better for you (But I suggest to create reports, will be easier to maintain project later). BTW. Pipeline is now failing due to missing reportgenerator@4 task |
Same problem described: ReportGenerator description: |
See here for a (potentially) different way (without needing any plugins). nanoframework/nanoFirmwareFlasher#128 Although looking at the differences, it looks like the |
@robin-jones Yea, you are right. But now it's complaining about multiple reports from one test lib :D One of report generator function is to merge all tests results into one. @josesimoes It's up to you, which solution is best. |
Sorry to be a pain (same person as last comment, just realised I was logged in with my work account), but can you try this: |
Actually see: https://josh-ops.com/posts/azure-devops-code-coverage/ it can be done via a script instead. I am just trying it on nanoframework/nanoFirmwareFlasher#128 |
@networkfusion |
We use similar methods for installing the SDK etc. and (if this PR is designed to run on "anyones" repo, it is probably better not to add that external dependency IMHO. Anyway, I have got it working now: https://github.com/nanoframework/nanoFirmwareFlasher/pull/128/files#diff-7915b9b726a397ae7ba6af7b9703633d21c031ebf21682f3ee7e6a4ec52837a5 |
@networkfusion |
I think I worked that out at the same time as you 😁 |
I ❤️ these pair coding sessions! 🤣 |
Co-authored-by: José Simões <jose.simoes@eclo.solutions>
@networkfusion @josesimoes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@torbacz any chance you can update nanodu github action to take these new parameters and pass them to the tool? 😉 |
@josesimoes |
@torbacz after running this on the samples repo, I ended up making a fix the the tool, then run it again and it's working now. Looking forward to your feedback on how it performs on 3rd party repos! |
Ops, my mistake there. It should be "#if !DEBUG". Probably I'll work on nanodu this week (problem with custom nuget repositories and authorization) so I'll include this one also. |
No worries with that block, I believe I have already fixed with my change of today. |
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist: