Skip to content

[Tests] If Constants.Version is not correctly generated, builds do not fail #4859

Closed

Description

@mandel-macaque

If during a merge, there is an issue and the Constants.Version is not correctly generated, we do have no automated way to notice it. This has happened already at least once resulting in the PR #4856 after @spouliot show it manually, the monitoring team missed it because the build was successful.

Activity

  1. added
    enhancement
    macOS
    iOS
    on Sep 20, 2018
  2. added this to the Future milestone on Sep 20, 2018
  3. spouliot commented on Sep 20, 2018

    @spouliot
    Contributor

    @mandel-macaque double check (it might exists) but a Version.[Try]Parse] tests that ensure it works and that Revision is not -1 (iirc it's the default) should to the trick.

  4. mandel-macaque commented on Sep 20, 2018

    @mandel-macaque
    ContributorAuthor

    @spouliot if it exists, is not ran in the bots, which is also an issue :/

    I should have seen a failure in the commits.

  5. spouliot commented on Sep 20, 2018

    @spouliot
    Contributor

    @mandel-macaque I meant that a Version.Parse test on that string might already exists and "12.3." could be a valid string :) In that case we simply need to check there's a valid (not default) Revision

  6. spouliot commented on Oct 16, 2018

    @spouliot
    Contributor

    So Version.TryParse ("12.3.", out var version) returns false and would have caught the situation. I'll add this to our unit tests (both XI and XM).

  7. added a commit that references this issue on Oct 18, 2018
    561d04a
  8. added 3 commits that reference this issue on Oct 31, 2018
    767d716
    1a54751
    6cc2c16
  9. ghost locked as resolved and limited conversation to collaborators on May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementiOSmacOS

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions