Skip to content

Linux CI build does not fail when Pester Tag is missing #9193

Closed

Description

@ThreeFive-O

Steps to reproduce

Omit the Tag for a Pester describe block and trigger the Linux CI build process.

Describe "Sample test" {
}

See Draft PR #9192 for example.

Expected behavior

Build process should fail for Windows, macOS and Linux.
ci.psm calls Get-PesterTag from build.psm1 to check if all test blocks have a valid Tag.

Actual behavior

Linux CI build succeeds and tests are executed without any error.
See Draft PR #9192 for reference.

Environment data


Activity

  1. added
    Issue-Question
    on Mar 22, 2019
  2. ThreeFive-O commented on Mar 22, 2019

    @ThreeFive-O
    ContributorAuthor
  3. RDIL commented on Mar 22, 2019

    @RDIL
    Contributor

    I’ll take a look later.

  4. added
    Issue-Bug
    WG-Maintainers-Build
    and removed
    Issue-Question
    on Mar 22, 2019
  5. ThreeFive-O commented on Mar 24, 2019

    @ThreeFive-O
    ContributorAuthor

    Issue no longer exists after PR #9209, which is merged now.
    Draft PR #9192 now successfully fails on Linux too.
    Thank you Travis Plunk (@TravisEz13) and Reece Dunham (@RDIL)!

  6. TravisEz13 commented on Mar 25, 2019

    @TravisEz13
    Member

    Technically it's still an issue, if you add the [feature] tag to the start of the last commit

  7. ThreeFive-O commented on Mar 25, 2019

    @ThreeFive-O
    ContributorAuthor

    Travis Plunk (@TravisEz13) Draft PR #9192 fails on all platforms with added [feature] tag for commit message. This is the expected behavior. Therefore I'm not able to reproduce it for PR CI runs.
    Since the merged code base for tests all include tags for Pester, only PRs would be able to introduce this problem.
    If you have time, maybe you could have a quick look, if I missed something.

  8. TravisEz13 commented on Mar 26, 2019

    @TravisEz13
    Member

    Your failure occurs in the build, which will fail as expected. The issue occurs when a pester test fails and the [feature] tag is specified on Linux or macOS.

  9. TravisEz13 commented on Mar 26, 2019

    @TravisEz13
    Member

    Added the fix for this to #9212

  10. ThreeFive-O commented on Mar 27, 2019

    @ThreeFive-O
    ContributorAuthor

    Travis Plunk (@TravisEz13) Thank you for clarification, but for the issue I described above the problem is fixed. The fix in #9212 describes a scenario which is post-build. This was a separate issue, but not the one I intended to describe with my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions