Recaptcha Enterprise sample tests flaky due to quota

Aperta
#25,793 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@torreypayne ci sta già lavorando.

Dal 9/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
google-cloud, ruby
Ambito
cloud, testing-qa

Direzione di ricerca

Inizia con acceptance/site_key_test.rb e acceptance/create_assessment_test.rb, concentrandoti sulle chiamate di gestione delle chiavi elencate e sugli errori di quota di Recaptcha Enterprise. Determina come i test di esempio interessati di v1 e v1beta1 dovrebbero evitare l’instabilità legata alla quota, quindi esegui i test di accettazione per verificare che non falliscano più a causa del limite di quota segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

api: recaptchaenterprise priority: p2 samples type: bug

The test appears to be running afoul of a limit on key management operations per minute. It affects recaptcha_enterprise v1 and v1beta1.

Example output:

  1) Failure:
Site key lifecycle#test_0003_lists site key [acceptance/site_key_test.rb:82]:
In stdout.
--- expected
+++ actual
@@ -1279,6 +1279,7 @@
 projects/542339357638/keys/6Ld9tA8oAAAAAK7OTR23MbXS_vC1KvaG95AFEA65
 projects/542339357638/keys/6Lc1HAsoAAAAAJ8z1vUIzdI0ZMpQQAIJBSuuVgXa
 projects/542339357638/keys/6Lc2IQsoAAAAAJNgqTUrIOhjCF7dhXivAoLtJqke
+projects/542339357638/keys/6Lc2IQsoAAAAAJNgqTUrIOhjCF7dhXivAoLtJqke
 projects/542339357638/keys/6LfW8gYoAAAAADklFArTM2Os7woUj3MdWO-ntob1
 projects/542339357638/keys/6LcSkAYoAAAAAGHCu0oTFTDWNyJBQAUxy_GzswW7
 projects/542339357638/keys/6LePZwIoAAAAAErw5JsQW7gGa8xkQvgQ9sAGE8fp


  2) Error:
Site key lifecycle#test_0002_updates site key:
Google::Cloud::ResourceExhaustedError: 8:Quota exceeded for quota metric 'Key Management Requests' and limit 'Key Management Requests per minute' of service 'recaptchaenterprise.googleapis.com' for consumer 'project_number:542339357638'.. debug_error_string:{UNKNOWN:Error received from peer ipv4:173.194.202.95:443 {created_time:"2024-04-25T13:13:17.560197693+00:00", grpc_status:8, grpc_message:"Quota exceeded for quota metric \'Key Management Requests\' and limit \'Key Management Requests per minute\' of service \'recaptchaenterprise.googleapis.com\' for consumer \'project_number:542339357638\'."}}
    /h/.gem/gems/google-cloud-recaptcha_enterprise-v1-0.20.1/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb:455:in `rescue in create_key'
    /h/.gem/gems/google-cloud-recaptcha_enterprise-v1-0.20.1/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb:417:in `create_key'
    acceptance/site_key_test.rb:53:in `create_test_site_key'
    acceptance/site_key_test.rb:68:in `block (2 levels) in '

  3) Error:
Site key lifecycle#after_all:
Google::Cloud::ResourceExhaustedError: 8:Quota exceeded for quota metric 'Key Management Requests' and limit 'Key Management Requests per minute' of service 'recaptchaenterprise.googleapis.com' for consumer 'project_number:542339357638'.. debug_error_string:{UNKNOWN:Error received from peer ipv4:173.194.202.95:443 {grpc_message:"Quota exceeded for quota metric \'Key Management Requests\' and limit \'Key Management Requests per minute\' of service \'recaptchaenterprise.googleapis.com\' for consumer \'project_number:542339357638\'.", grpc_status:8, created_time:"2024-04-25T13:13:17.584102373+00:00"}}
    /h/.gem/gems/google-cloud-recaptcha_enterprise-v1-0.20.1/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb:900:in `rescue in delete_key'
    /h/.gem/gems/google-cloud-recaptcha_enterprise-v1-0.20.1/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb:862:in `delete_key'
    acceptance/site_key_test.rb:37:in `block (3 levels) in '
    acceptance/site_key_test.rb:36:in `each'
    acceptance/site_key_test.rb:36:in `block (2 levels) in '

  4) Error:
Create Assessment#before_all:
Google::Cloud::ResourceExhaustedError: 8:Quota exceeded for quota metric 'Key Management Requests' and limit 'Key Management Requests per minute' of service 'recaptchaenterprise.googleapis.com' for consumer 'project_number:542339357638'.. debug_error_string:{UNKNOWN:Error received from peer ipv4:173.194.202.95:443 {created_time:"2024-04-25T13:13:17.605074915+00:00", grpc_status:8, grpc_message:"Quota exceeded for quota metric \'Key Management Requests\' and limit \'Key Management Requests per minute\' of service \'recaptchaenterprise.googleapis.com\' for consumer \'project_number:542339357638\'."}}
    /h/.gem/gems/google-cloud-recaptcha_enterprise-v1-0.20.1/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb:455:in `rescue in create_key'
    /h/.gem/gems/google-cloud-recaptcha_enterprise-v1-0.20.1/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb:417:in `create_key'
    acceptance/create_assessment_test.rb:59:in `get_site_key'
    acceptance/create_assessment_test.rb:35:in `block (2 levels) in '
Lingua principale
Ruby
Stelle
1.4k
Fork
581
Merge medio
1g 22h
PR unite (30g)
69

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleapis/google-cloud-ruby

Tutte le issue di googleapis/google-cloud-ruby

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.