Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UX for the lambda workflow (upload and lambda) #323

Merged

Conversation

r-c-n
Copy link
Contributor

@r-c-n r-c-n commented Oct 29, 2024

  • Catch exceptional scenarios and provide error messages instead of panicking
  • Enhance AWS lambda error logs
  • Return errors in the lambda function as error responses to the client

Simplify the code for opening and processing the results file and handle
and provide a more informative error message.

Signed-off-by: Ricardo Cañuelo <[email protected]>
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2024
Catch the scenario where the server returns something that isn't a well
formed json object.

Signed-off-by: Ricardo Cañuelo <[email protected]>
Check the request contents provided by `resctl-bench upload` and return
the error messages to the client as error responses.

Signed-off-by: Ricardo Cañuelo <[email protected]>
Add an error log line to improve debugging and traceability in the AWS
lambda logs.

Signed-off-by: Ricardo Cañuelo <[email protected]>
Provide error messages both for lambda logs and for the client instead
of panicking and showing a stack trace.

Signed-off-by: Ricardo Cañuelo <[email protected]>
@r-c-n r-c-n force-pushed the rcn-20241017-resctl-demo-fixes branch from c497367 to a861c55 Compare October 29, 2024 14:14
@htejun htejun merged commit 47035c5 into facebookexperimental:main Oct 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants