googleapis / googleapis/ruby-spanner

Provide a setup for a faster feedback loop for acceptance tests locally

オープン
#52 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
type: cleanup
主要言語
Ruby
スター
6
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

**Issue:**

The [setup process](https://github.com/googleapis/ruby-spanner/blob/main/google-cloud-spanner/acceptance/spanner_helper.rb) for spanner acceptance tests creates a new database and instance every time it is run. While this makes sense for the CI process, it is very slow during local development.

Database & instance creation is a slow process, so running even a single acceptance test takes 1-2 minutes locally.

**Recommended Solution:**

The setup process should accept an already existing database & instance, and run tests on them. After the run, it should avoid deleting the database & instance so the developer can reuse them again.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

google-cloud-spanner/acceptance/spanner_helper.rb から始めて、受け入れテストがインスタンスとデータベースをどのように作成し、クリーンアップするかを追跡します。ローカル実行で既存のリソースを受け取れる方法を特定し、繰り返し行うローカル実行でそれらを削除せずに再利用できることを確認します。その一方で、CI の動作が引き続き適切であることも確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ruby
領域
database, testing
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。