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

fix: name temporary python script for run_python with suitable name #1616

Merged
merged 4 commits into from Oct 25, 2023

Conversation

h4ck3rk3y
Copy link
Contributor

Earlier we would name it with a name like tranquil-wind etc and that would confuse the reader on what it might contain. The ideal solution here is to clean this up and not use a temporary files artifact at all and not use the service network inside interpret

@@ -149,6 +151,9 @@ type RunPythonCapabilities struct {
}

func (builtin *RunPythonCapabilities) Interpret(_ string, arguments *builtin_argument.ArgumentValuesSet) (starlark.Value, *startosis_errors.InterpretationError) {
randomUuid := uuid.NewRandom()
builtin.name = fmt.Sprintf("task-%v", randomUuid.String())
Copy link
Contributor

Choose a reason for hiding this comment

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

you can put this "task-%v" in a constant

@h4ck3rk3y h4ck3rk3y added this pull request to the merge queue Oct 25, 2023
Merged via the queue into main with commit 88edb39 Oct 25, 2023
32 checks passed
@h4ck3rk3y h4ck3rk3y deleted the gyani/name-temporary-python-script branch October 25, 2023 19:24
github-merge-queue bot pushed a commit that referenced this pull request Oct 25, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.84.13](0.84.12...0.84.13)
(2023-10-25)


### Features

* user-configurable labels (in ServiceConfig type) for Docker containers
and k8s pods
([#1604](#1604))
([e98cdf6](e98cdf6))


### Bug Fixes

* name temporary python script for run_python with suitable name
([#1616](#1616))
([88edb39](88edb39))

---
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>
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

2 participants