googleapis / googleapis/ruby-spanner
Provide a setup for a faster feedback loop for acceptance tests locally
- Ngôn ngữ chính
- Ruby
- Star
- 6
- Fork
- 24
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với google-cloud-spanner/acceptance/spanner_helper.rb và theo dõi cách các bài kiểm thử chấp nhận tạo và dọn dẹp instance cũng như database. Xác định cách các lần chạy cục bộ có thể nhận các tài nguyên hiện có, sau đó xác minh rằng các lần chạy cục bộ lặp lại sẽ tái sử dụng chúng mà không xóa chúng, trong khi hành vi của CI vẫn phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ruby
- Lĩnh vực
- database, testing
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100