specification icon indicating copy to clipboard operation
specification copied to clipboard

Fix the Script Process

Open cdavernas opened this issue 1 year ago • 2 comments
trafficstars

What would you like to be added:

Fix the script process by:

  • [ ] Document that runtimes must support js (executed by NodeJS) and python (executed by Python) by default.
  • [ ] Document that language should also specify the version (ex: js:22.2.0, python:3).
  • [ ] Add an arguments property, of type string[], used to pass arguments to the script to execute. Document that the arguments can contain runtime expressions.
  • [ ] Document that environment can contain runtime expressions.
  • [ ] Add an object used to define how the output is read from a script's execution (see below example)

Define script output proposal:

run:
  script:
    language: jq:22.2.0
    code: ...
    output:
      console: {} #indicates that we should read the output from the console (stdout)
      file: {} #indicates that the script is expected to output to a file relative to the script's working directory
      code: {} #indicates that the script outputs its exit code

Why is this needed:

Allow proper execution of script processes.

cdavernas avatar May 31 '24 14:05 cdavernas

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 04 '24 00:08 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 01 '24 00:10 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 22 '24 00:11 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 07 '25 00:01 github-actions[bot]

As previously discussed with @fjtirado, @ricardozanini, and @JBBianchi multiple times over the past year, we have decided to retain the script process while restricting the versions of the supported languages.

This approach provides the best of both worlds: it preserves cross-compatibility for workflows while allowing users to use alternative language versions by leveraging container processes when necessary.

cdavernas avatar Jan 10 '25 11:01 cdavernas

Following languages are supported:

Language Version
JavaScript ES2024
Python 3.13.1

cdavernas avatar Jan 10 '25 11:01 cdavernas