Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

specifying action limits in the manifest is not working

オープン
#507 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
api, cli

調査の方向性

マニフェストのアクション制限を OpenWhisk クライアントに渡す deployment path から始め、提供されたマニフェストを使って aio app deploy、続けて aio rt action get my-package/generic を実行し、問題を再現します。クライアント呼び出しの前にマニフェストの制限名をマッピングします。完了条件は、アクションメタデータが concurrency: 300 を示し、その他のドキュメント化された制限が対応する API キーを使用することです。

索引モデルが issue の本文から書いたものです。

説明

bug

The Openwhisk manifest spec for action limits:

https://github.com/apache/openwhisk-wskdeploy/blob/master/specification/html/spec_actions.md#valid-limit-keys

The manifest spec limits keys we care about that are supported in the Openwhisk API are:

  1. timeout
  2. memorySize
  3. logSize
  4. concurrentActivations

However, the Openwhisk API only supports these keys:

  1. timeout
  2. memory
  3. logs
  4. concurrency

Repro

Deploy an action with this manifest:

application:
  actions: actions
  web: web-src
  runtimeManifest:
    packages:
      my-package:
        license: Apache-2.0
        actions:
          generic:
            function: actions/generic/index.js
            web: 'yes'
            runtime: 'nodejs:14'
            annotations:
              require-adobe-auth: false
              final: true
            limits:
              concurrentActivations: 300

Then run:

$ aio app deploy
$ aio rt action get my-package/generic

Note that the action metadata output will not show concurrency set to 300.

Workaround

For the action limits, use these keys for the corresponding limits keys in the spec:

  1. timeout
  2. memory
  3. logs
  4. concurrency

Fix

Before the config is passed to the Openwhisk client library, the limits keys need to be mapped accordingly (see above)

主要言語
JavaScript
スター
28
フォーク
41
平均マージ
1日 15時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

adobe/aio-cli-plugin-app のほかの issue

adobe/aio-cli-plugin-app の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。