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

feat: added a description field to instructions #2147

Merged
merged 7 commits into from Feb 15, 2024
Merged

Conversation

h4ck3rk3y
Copy link
Contributor

Description

The description field can be used instead of the full instruction while outputting to the end user

In the CLI this can be accessed using --description;

@h4ck3rk3y h4ck3rk3y added this pull request to the merge queue Feb 15, 2024
Merged via the queue into main with commit 9085cfd Feb 15, 2024
38 checks passed
@h4ck3rk3y h4ck3rk3y deleted the gyani/description branch February 15, 2024 14:33
github-merge-queue bot pushed a commit that referenced this pull request Feb 15, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.86.24](0.86.23...0.86.24)
(2024-02-15)


### Features

* added a `description` field to instructions
([#2147](#2147))
([9085cfd](9085cfd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
Copy link
Member

@mieubrisse mieubrisse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some suggestions!

@@ -155,6 +155,10 @@ func (builtin *VerifyCapabilities) FillPersistableAttributes(builder *enclave_pl
builder.SetType(VerifyBuiltinName)
}

func (builtin *VerifyCapabilities) Description() string {
return fmt.Sprintf("Verifying whether two values meet a certain condition '%v'", builtin.assertion)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to add a bit more info on what those values are?

@@ -288,3 +288,7 @@ func (builtin *WaitCapabilities) TryResolveWith(instructionsAreEqual bool, _ *en
func (builtin *WaitCapabilities) FillPersistableAttributes(builder *enclave_plan_persistence.EnclavePlanInstructionBuilder) {
builder.SetType(WaitBuiltinName)
}

func (builtin *WaitCapabilities) Description() string {
return fmt.Sprintf("Waiting for at most '%v' for service '%v' to reach a certain state", builtin.timeout, builtin.serviceName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here; can we give a bit more info on what the certain state is?

github-merge-queue bot pushed a commit that referenced this pull request Feb 16, 2024
Kevin had given some feedback on #2147 ; this PR works on those
github-merge-queue bot pushed a commit that referenced this pull request Feb 21, 2024
## Description:
This PR uses the new `description` field in the enclave logs viewer. By
default this field is now used to render starlark instructions, rather
than the raw field (from #2147 ).

### Demo


https://github.com/kurtosis-tech/kurtosis/assets/4419574/a1aa4754-f68b-4ea5-8af8-068531db4dab

## Is this change user facing?
Yes

## References (if applicable):
* briefed on slack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants