-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ourchitecture <[email protected]>
- Loading branch information
1 parent
e4b224c
commit 4a9cdc0
Showing
5 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
status: accepted | ||
date: 2023-09-19 | ||
deciders: Ourchitecture | ||
--- | ||
|
||
# Capture automation task output | ||
|
||
## Context and Problem Statement | ||
|
||
Streaming task automation output to the terminal is useful for humans, but | ||
writing the output to a file can be useful for referencing long after the | ||
task is executed, used for task cache optimizations e.g. wireit, as well | ||
as can be uploaded for specific DevOps pipeline builds e.g. Continuous | ||
Integration. | ||
|
||
## Considered Options | ||
|
||
- Pipe command output | ||
- Capture "stderr" and "stdout" | ||
|
||
## Decision Outcome | ||
|
||
Building on the decision to [use NodeJS scripts](./script_automation-tasks.md) | ||
as well as [using Wireit](./optimize_automation-tasks.md), | ||
building on top of Node's built-in `exec` function was selected along with | ||
logging through the "winston" library. The team is already familiar with | ||
these technologies. | ||
|
||
### Consequences | ||
|
||
- Good, because it enables Wireit output caching | ||
- Good, because winston is a fairly ubiquitous solution for NodeJS logging | ||
- Good, because it enables artifact uploads during DevOps pipeline runs | ||
e.g. Continuous Integration | ||
|
||
## More Information | ||
|
||
- [winston website](https://github.com/winstonjs/winston#readme) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters