discussion for slack-based implementation of the c...
# software-contributors
c
discussion for slack-based implementation of the current
respond-slack
CLI
m
i started to build the feature last week, i never tested the code, but claude/chatgpt came up with this lambda so far https://github.com/frumfinance/FrumFinanceCore/blob/main/lambdas/respond_slack_lambda/main.py
c
Where will we be hosting this? What infastructure should I build it for?
m
probably half baked
but the lambda is already deployed
and running
c
ok lambda
m
yeah we are a lambda shop
c
OK I will check it out thanks!
m
👍
i couldn't get the LLM to write an integration test that was actaully helpful, despite trying for a few hours, so i have no idea if it works since the integ tests are around asserting failures are caught properly
no happy path tetsts
c
/respond is currently working for you?
m
no i didn't get anywhere near that far
c
does it do anything at all?
m
no clue
didn't invoke, it looks right but i didn't run it by hand and i couldn't get valid integ tests
so i never connected the lambda to the slack app
to try it out
c
ok
OK so I am new to AWS (and slack 😂) looks basic idea is to create a function with a
handler()
that accepts
event
and
context
(please correct me if I am wrong) Can I test my lambda locally?
m
You can test a lambda locally. Two ways. Raw python where you just create a script that passes in an event into the handler. Or you can use our testing library which you'll see is unit tests that bypass lambda or we also have integration tests that run as if it's lambda.
You can see what the integration test workflow that happens on GitHub actions does to build your own local environment if you want to test that way.
You would spin up localstack.
Personally I would test remotely by deploying to alpha lol
Easier than setting up a local environment
c
Personally I would test remotely by deploying to alpha lol
this sounds cool. So I can deploy to alpha, test it out with slack, and then write real tests once I know what I am doing?
m
right
the main branch is already deployed to alpha so unless you make changes you don’t need to deploy