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

Created the new CIRecordHelper behaviour and an associate rake task: #39

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

Edouard-chin
Copy link
Contributor

Created the new CIRecordHelper behaviour and an associate rake task:

  • Recording the deprecations whitelist for thousands of tests is a
    real pain depending on how your CI is setup.

    Most CI runs test in parallel in different machines, the regular
    Record Behaviour from this gem will create bunch of YAML files,
    but since multiple test from the same test file runs on different
    machines, you end up with multiple yaml files for the same test
    suite. You'd need a way to download all artifacts from CI and
    "merge" all files, it's a nightmare.

    This PR introduce a new behaviour that leverage a feature that most
    CI have which is to download the log output from the test run.
    The CIRecordHelper behaviour will output a JSON representation of
    your deprecations. You'll simply have to download the log output
    locally and finally run the associate rake task meant to parse this
    log file and generate proper deprecation as YAML file.

- Recording the deprecations whitelist for thousands of tests is a
  real pain depending on how your CI is setup.

  Most CI runs test in parallel in different machines, the regular
  `Record` Behaviour from this gem will create bunch of YAML files,
  but since multiple test from the same test file runs on different
  machines, you end up with multiple yaml files for the same test
  suite. You'd need a way to download all artifacts from CI and
  "merge" all files, it's a nightmare.

  This PR introduce a new behaviour that leverage a feature that most
  CI have which is to download the log output from the test run.
  The `CIRecordHelper` behaviour will output a JSON representation of
  your deprecations. You'll simply have to download the log output
  locally and finally run the associate rake task meant to parse this
  log file and generate proper deprecation as YAML file.
@Edouard-chin Edouard-chin merged commit 233bd55 into master Feb 28, 2019
@Edouard-chin Edouard-chin deleted the ec-ci-recording-wip branch February 28, 2019 01:24
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems March 16, 2022 22:06 Inactive
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.

1 participant