Skip to content

Instantly share code, notes, and snippets.

@sue445
Created December 3, 2018 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sue445/055cac5b05b439a21eee449bd0ec5eb5 to your computer and use it in GitHub Desktop.
Save sue445/055cac5b05b439a21eee449bd0ec5eb5 to your computer and use it in GitHub Desktop.
CircleCIバグレポート下書き

公式にバグレポート出す前の下書き

事象

sue445/circleci-ruby-orbs#39

https://circleci.com/workflow-run/e2dba05f-baa0-42b4-8c83-4fd5ea99387a

test-in-builds(ローカルのテスト)は通っているのに、smoke_test(実際に別リポジトリからPRのorbを使ってのテスト)でコケてる

smoke_testリポジトリ側のエラー内容

https://circleci.com/gh/sue445/circleci-ruby-orbs-test/225

#!/bin/sh -eo pipefail
# Error calling workflow: 'smoke_test'
# Error calling job: 'ruby-orbs/bundle-update-pr'
# Cannot parse step
# 
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
false
Exited with code 1

https://github.com/sue445/circleci-ruby-orbs-test/blob/994a927783e43a3fe4e7dc7d2e0533662db5966f/.circleci/config.yml#L40-L47

ruby-orbs/bundle-install を修正したのになぜか ruby-orbs/bundle-update-pr のparseでコケてる。

ためしに - ruby-orbs/bundle-install だけコメントアウトしたらエラーにはならなかった。

エラーが起きる時の設定ファイル

https://github.com/sue445/circleci-ruby-orbs-test/commit/bb87d959962c67907b498156eefa1b52353f0549

sue445/ruby-orbs@dev:6c8f5340a25b6b325920f88c12e42ad99eec05ec の中身

https://github.com/sue445/circleci-ruby-orbs/blob/6c8f5340a25b6b325920f88c12e42ad99eec05ec/src/commands/bundle-install.yml#L46-L148

エラーが起きない時の設定ファイル

https://github.com/sue445/circleci-ruby-orbs-test/commit/a4ae68a52f532aa63eeb302278f9a9748cee225c

sue445/ruby-orbs@dev:7dd60f84b9d036e5f99feebd74e6b3eb86fc2ca1 の中身

https://github.com/sue445/circleci-ruby-orbs/blob/7dd60f84b9d036e5f99feebd74e6b3eb86fc2ca1/src/commands/bundle-install.yml#L46-L148

whenunless をやめて元に戻したらエラーにならなくなった。

condition: << parameters.restore_bundled_with >> は使えているので、steps parameterの中でcondition stepsを使うとダメというわけではなさそう。(数が多すぎるとダメ?)

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