Skip to content

Inconsistent __OW_ACTION_NAME variable in local vs deployed runtime actions #752

Open
@iivvaannxx

Description

@iivvaannxx

Expected Behaviour

__OW_ACTION_NAME is consistent on both worlds. Ideally when running in dev, the namespace and the package are also prepended to the name (how it is after deploy, see below).

  • Expected format: /namespace/packageName/actionName

Important

If instead of making the dev value be like the deploy value (with prepended info), it's done the other way around (the deploy value becomes like the dev value), please add a way to know the packageName the runtime action belongs to.

Actual Behaviour

When running runtime actions locally (via aio app dev) vs deployed (after aio app deploy), the value __OW_ACTION_NAME is not consistent.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

  1. Create a generic action and log the process.env.__OW_ACTION_NAME.
  2. Run it locally via aio app dev and in "production" after deploying it with aio app deploy.
  3. See the logs and notice that __OW_ACTION_NAME doesn't have consistent values (as one would expect):
    • In aio app dev it only contains the name of the runtime action (e.g. generic).
    • After aio app deploy it contains the name of the runtime action prepended by the namespace and the packageName (e.g. /namespace/packageName/generic).

Environment Info

  System:
    OS: macOS 15.4.1
    CPU: (16) arm64 Apple M4 Max
    Memory: 1.75 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.local/state/fnm_multishells/28274_1747157127062/bin/node
    Yarn: 1.22.22 - ~/.local/state/fnm_multishells/28274_1747157127062/bin/yarn
    npm: 10.9.2 - ~/.local/state/fnm_multishells/28274_1747157127062/bin/npm
  Virtualization:
    Docker: 28.0.4 - /usr/local/bin/docker
  npmGlobalPackages:
    @adobe/aio-cli: Not Found

Regarding the not found, I have installed the aio-cli via the bun package manager, and not npm. Running aio -v returns the following:

@adobe/aio-cli/10.3.4 darwin-arm64 node-v22.14.0

Sample Code that illustrates the problem

N/A

Logs taken while reproducing problem

For these values:

  • Runtime Action: generic
  • Package: example-package
  • Workspace/Namespace: 1339531-playgroundivan-stage

Logging the __OW_ACTION_NAME we get:

  • In aio app dev: { __OW_ACTION_NAME: 'generic' }
  • Running after aio app deploy: { __OW_ACTION_NAME: '/1339531-playgroundivan-stage/example-package/generic' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions