Skip to content

Commit

Permalink
common: introduce fuses against ill-considered use of NDCTL_ENABLE=n …
Browse files Browse the repository at this point in the history
…(fix)

Ref: #5946

Signed-off-by: Jan Michalski <jan.michalski@intel.com>
  • Loading branch information
janekmi committed Mar 20, 2024
1 parent ca3fd60 commit e4e19aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/actions/pmem_test_prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ inputs:
description: Build with the fault injection capability
required: false
default: '0'
_env_ignore_dict:
description: |
Dictionary providing the PMEMOBJ_IGNORE_(DIRTY_SHUTDOWN|BAD_BLOCKS) values
required to acknowledge missing functionality. Indexed by the NDCTL_ENABLE
value.
required: false
default: |
{
"n": "y",
"y": "n"
}
runs:
using: composite
steps:
Expand All @@ -30,6 +41,8 @@ runs:
- env:
FAULT_INJECTION: ${{ inputs.fault_injection }}
NDCTL_ENABLE: ${{ inputs.ndctl_enable }}
PMEMOBJ_IGNORE_DIRTY_SHUTDOWN: ${{ fromJSON(inputs._env_ignore_dict)[inputs.ndctl_enable] }}
PMEMOBJ_IGNORE_BAD_BLOCKS: ${{ fromJSON(inputs._env_ignore_dict)[inputs.ndctl_enable] }}
run: |
echo '::group::Build'
$WORKDIR/build-pmdk.sh
Expand Down

0 comments on commit e4e19aa

Please sign in to comment.