apache / apache/openwhisk-runtime-ruby
rack 2.1 breaks ruby v2.5 action
- Linguagem predominante
- Ruby
- Estrelas
- 13
- Forks
- 15
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
version 2.1.0 of rack (released 26 days ago) breaks the ruby 2.5 action for openwhisk.
The symptom of the error is output like shown below (obtained by running the action-v2.5 container locally when built with rack 2.1.2 and curling /init with the payload {})
```
XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX
{"error":"Missing main/no code to execute."}
XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX
2020-02-06 18:14:07 +0000: Rack app error handling request { POST /init }
#
Did you mean? to_s
to_a>
/usr/local/bundle/gems/puma-4.3.1/lib/puma/server.rb:685:in `handle_request'
/usr/local/bundle/gems/puma-4.3.1/lib/puma/server.rb:472:in `process_client'
/usr/local/bundle/gems/puma-4.3.1/lib/puma/server.rb:328:in `block in run'
/usr/local/bundle/gems/puma-4.3.1/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
```
PR #43 hacks around this by adding a version requirement to keep us on rack 2.0.x until someone who actually knows Ruby has time to adjust our code for rack 2.1.x.
Guia de contribuição
Direção de pesquisa
Comece reproduzindo a falha no contêiner action-v2.5 com Rack 2.1.2 e um POST para /init usando o payload {}. Leia PR #43 para conhecer o workaround atual para a versão do Rack; em seguida, rastreie o ErrorResponse relatado e confirme que a action do Ruby 2.5 lida com /init corretamente usando Rack 2.1.x.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- ruby
- Domínio
- backend
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100