-
Notifications
You must be signed in to change notification settings - Fork 20
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
Changes to output config.json have broken projects #15
Comments
@purplecabbage what's the workaround? Update CLI to latest, build and deploy project? |
This also affects extension tooling. |
@purplecabbage @meryllblanchet
This has broken asset compute cli - in particular its test step. It builds the action before running the tests but now can't find the zip anymore as the zip filename has changed:
This means all Asset Compute customers with custom workers won't be able to run tests after upgrading to the latest aio-cli. A quick test seems it is also not easy to rollback, since downgrading to aio cli 4 will still leave the updated plugins/dependencies around as it seems and the issue persists. FWIW, right now we are calling the As mentioned before the "right" solution here would be an API like |
(Note also that our tests will fail for asset-compute-sdk until this is fixed, since we run tests on a test-worker/test-action using the asset compute cli. This means we can't release tested and validated bugfixes automatically currently). |
FWIW, this seems to have introduced the action.zip name change to include the package name: #12 |
@Himavanth can you comment on this issue, and the proposed additions to the API? We had to branch @adobe/aio-cli-plugin-app@5.1.1 and pin @adobe/aio-lib-runtime@1.1.0 to revert the changes and published app plugin 5.1.2: https://github.com/adobe/aio-cli-plugin-app/commits/5.1.2 |
@alexkli That is a good suggestion. We do have part of this worked out in https://github.com/adobe/aio-lib-runtime/blob/master/src/build-actions.js#L149 but we haven't got to the point of letting users call this API directly. When this is done, it should serve your need. |
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-963 |
Moving to @adobe/aio-lib-runtime |
After discussion with the team I believe the way forward is:
|
Two issues (breakage):
Note that there is an inconsistency here, the 1. Proposed fixes for the 1st issue:All proposed fixes are for backwards compatibility. Assume the package version is
packages:
package_1:
actions:
action_1:
action_2:
package_2:
actions:
action_3:
action_4: converts to: {
"action_1": "some url",
"action_2": "some url",
"action_3": "some url",
"action_4": "some url"
}
packages:
package_1:
actions:
action_1:
action_2:
package_2:
actions:
action_1:
action_2: converts to: {
"action_1": "some url",
"action_2": "some url",
"package_2-0.0.1/action_1": "some url",
"package_2-0.0.1/action_2": "some url"
}
packages:
package_1:
actions:
action_1:
action_2:
package_2:
actions:
action_1:
action_2: converts to: {
"package_1-0.0.1/action_1": "some url",
"package_1-0.0.1/action_2": "some url",
"package_2-0.0.1/action_1": "some url",
"package_2-0.0.1/action_2": "some url",
"action_1": "some url",
"action_2": "some url"
} 2. Proposed fix for the 2nd issue:Right now we have a For example, if your app folder is packages:
package_1:
actions:
action_1:
action_2:
package_2:
actions:
action_1:
action_2: the zip list is: [
"/my-app/dist/actions/package_1-0.0.1-action_1.zip",
"/my-app/dist/actions/package_1-0.0.1-action_2.zip",
"/my-app/dist/actions/package_2-0.0.1-action_1.zip",
"/my-app/dist/actions/package_2-0.0.1-action_2.zip"
] The proposed fix is to output this list as a |
Worth noting that the test framework of aio-cli-plugin-asset-compute would have to support multiple packages as well. Currently it assumes the default package with possibly multiple actions inside and expects a test folder structure like
I wonder if it wouldn't be easier to provide an js API as mentioned above:
|
@Himavanth please see #20 as well |
We used to export the actions to config.json as
Now we are prefixing with the package name:
This is the same issue reported by @surajpindoria in slack ...
The text was updated successfully, but these errors were encountered: