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

Paule96/warnings powershell #13122

Merged
merged 17 commits into from
Oct 16, 2020

Conversation

paule96
Copy link
Contributor

@paule96 paule96 commented Jun 15, 2020

Task name: PowerShellV2

Description: Track powershell warnings as Azure DevOps Warnings

Documentation changes required: Y

**Added unit tests:**N

Attached related issue: (Y/N) #13121

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

Result after this change

image

@paule96 paule96 requested a review from mjroghelia as a code owner June 15, 2020 11:44
@paule96
Copy link
Contributor Author

paule96 commented Jun 22, 2020

Ping @mjroghelia

@paule96
Copy link
Contributor Author

paule96 commented Jul 25, 2020

ping @ericsciple

can you review this?

@paule96
Copy link
Contributor Author

paule96 commented Jul 25, 2020

ping @sandermvanvliet

can you review this?

Copy link
Contributor

@sandermvanvliet sandermvanvliet left a comment

Choose a reason for hiding this comment

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

@paule96 added two comments for you. Otherwise looks good 👍

}
contents.push(script);
// log with detail to avoid a warning output.
tl.logDetail(uuidV4(),tl.loc('JS_FormattedCommand', script),null, 'command', 'command', 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

I see you're using tl.logDetail here where the rest of this is using console.log. Perhpas for consistency this should remain the same or (and I suspect this is the case) if you only want this for a certain log level the console.log should most likely be replaced.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No I can't use console.log. See the comment above. This is the script that contains ##vso[task.logissue type=warning;]. This will trigger always a warning. So to prevent this, I force with tl.logDetail that it isn't important.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sandermvanvliet so is it okay, like it is? Or is there a good method to escape ##vso[task.logissue type=warning;]?

Tasks/PowerShellV2/task.json Outdated Show resolved Hide resolved
@paule96
Copy link
Contributor Author

paule96 commented Aug 11, 2020

ping @sandermvanvliet

@paule96
Copy link
Contributor Author

paule96 commented Aug 22, 2020

@paule96
Copy link
Contributor Author

paule96 commented Sep 14, 2020

@mjroghelia can you also review this? so, we can bring this to the customers :)

@paule96
Copy link
Contributor Author

paule96 commented Oct 5, 2020

Maybe we can merge this in hacktober?

Copy link

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

@anatolybolshakov could someone on your team take a look at this one?

Tasks/PowerShellV2/task.json Outdated Show resolved Hide resolved
@alexander-prozorov
Copy link
Contributor

Checked out these changes on hosted images (Windows, Ubuntu, MacOS). Everything works as expected.

@paule96
Copy link
Contributor Author

paule96 commented Oct 9, 2020

all tasks done ;)

@anatolybolshakov please review again 👍

@alexander-prozorov alexander-prozorov removed their assignment Oct 9, 2020
Copy link
Contributor

@EzzhevNikita EzzhevNikita left a comment

Choose a reason for hiding this comment

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

I agree with the suggestions from @anatolybolshakov, otherwise looks good!

paule96 and others added 2 commits October 16, 2020 20:14
Co-authored-by: Anatoly Bolshakov <[email protected]>
- fix version number in task.loc
- fix casing of Azure DevOps in task.json
@paule96
Copy link
Contributor Author

paule96 commented Oct 16, 2020

Thanks for the feedback. I fixed it :) please @anatolybolshakov give your final feedback :P

Copy link
Contributor

@anatolybolshakov anatolybolshakov left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for contribution here!

@anatolybolshakov anatolybolshakov merged commit 0a67922 into microsoft:master Oct 16, 2020
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.

6 participants