winglang / winglang/wing

aws: Logs should be displayed in error cases as well

Open
#3,969 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

☁️ aws 🐛 bug
Dominant language
TypeScript
Stars
5.4k
Forks
215
Avg merge
2h 9m
Merged PRs (30d)
27

Description

I tried this:
bring cloud;

test "logs should be displayed" {
  log("hello");
  throw("I will prevent logs from showing up in tf-aws");
}

playground

This happened:

log is not showing up when running with wing test -t tf-aws

I expected this:

the cli to print the log

Is there a workaround?

don't throw an error / aws console

Component

SDK, CLI

Wing Version

0.25.46

Node.js Version

18.16.0

Platform(s)

MacOS

Anything else?

No response

Community Notes
  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Wing program with wing test -t tf-aws and compare its output with the expected CLI behavior. Trace the test command's AWS execution path; done means log("hello") is printed even when the test subsequently throws an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.