Skip to content

Conversation

@iSazonov
Copy link
Collaborator

@iSazonov iSazonov commented Apr 7, 2017

Related #3347

It is expected that the AppVeyor CI failed.

The meta tests run only on AppVeyor CI and locally.
The meta tests by default check only new and changed files from "current" PR (compared with origin/master).
Therefore, the PR for demo includes test files for each type of validation - this is what causes CI tests to fail. These test files should be deleted before merge.

Now check of all files in Repo is blocked. We can allow it if necessary for example for night builds.

After merging the PR we will have to produce every modified file in line with the meta tests.

@lzybkr
Copy link
Contributor

lzybkr commented Apr 14, 2017

I think it's more common to use git commit hooks to enforce the sorts of things this PR is trying to catch.

@iSazonov
Copy link
Collaborator Author

It seems users (IDEs) can silently ignore hooks. So anyway we need scripts to perform approved checks.

@lzybkr
Copy link
Contributor

lzybkr commented Apr 17, 2017

An IDE could not ignore a server side hook.

@iSazonov
Copy link
Collaborator Author

People can all :-)
Even if we add hooks, we still need a script for full code checks, don't we?

With specific regard to hooks, GitHub addins look more attractive. If MSFT can turn such addins for code checks it will be great. Is it possible?

@TravisEz13
Copy link
Member

There is code to automatically fix most of the tests you have added here: https://github.com/PowerShell/DscResource.Tests/blob/dev/MetaFixers.psm1

I'd say we separate the hook issue. These tests should be identified in some way that we can create a hook, but we need the tests before we can create a hook.

@iSazonov
Copy link
Collaborator Author

iSazonov commented Sep 2, 2017

@TravisEz13 Thanks! We should be careful with MetaFixers.psm1:

  • Not all files is UTF8 (I don't risk to fix this) and some files contain special symbols.
  • Many test files contain tabs and broken formatting

What is our plan? What should I do next?

@stale
Copy link

stale bot commented Mar 16, 2018

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. Thank you for your contributions.

@stale stale bot added the Stale label Mar 16, 2018
@daxian-dbw daxian-dbw removed the Stale label Mar 17, 2018
@stale
Copy link

stale bot commented Apr 16, 2018

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days.
Thank you for your contributions.
Community members are welcome to grab these works.

@stale stale bot added Stale and removed Stale labels Apr 16, 2018
@iSazonov iSazonov deleted the metatests branch April 17, 2020 12:17
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.

7 participants