Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
5ee4323
chore: setup repo rules and configurations
ABC2015 Nov 28, 2024
8b3e1ac
chore: add qa, main, beta branch names to validation workflow
ABC2015 Nov 28, 2024
4d9645b
chore: update contributor, validation, and qa workflows
ABC2015 Nov 28, 2024
307b728
chore: more updates to contributor, validation, and qa workflows
ABC2015 Nov 28, 2024
b32ebc3
chore: updates to main workflow trigger
ABC2015 Nov 28, 2024
14fc016
chore: additional to workflow configurations
ABC2015 Nov 28, 2024
f540085
chore: additional to workflow configurations
ABC2015 Nov 28, 2024
d1968b6
chore: additional to workflow configurations
ABC2015 Nov 28, 2024
205a933
chore: additional to workflow configurations
ABC2015 Nov 28, 2024
409936f
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
b6ce20b
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
21e59b3
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
06f78a8
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
67a7e96
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
69e90d9
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
434f839
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
5155073
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
27eadcd
chore: additional to workflow configurations-env
ABC2015 Nov 28, 2024
0293a9b
chore: test contributing pipeline
ABC2015 Nov 28, 2024
863f840
chore: test contributing pipeline
ABC2015 Nov 28, 2024
f215b6b
chore: test contributing pipeline
ABC2015 Nov 28, 2024
c4116f9
chore: test contributing pipeline
ABC2015 Nov 28, 2024
4958c8a
chore: test contributing pipeline
ABC2015 Nov 28, 2024
872dcef
chore: test contributing pipeline
ABC2015 Nov 28, 2024
3dd66e7
chore: test contributing pipeline
ABC2015 Nov 28, 2024
0818b68
chore: test contributing pipeline
ABC2015 Nov 28, 2024
c93a3d0
chore: test contributing pipeline
ABC2015 Nov 28, 2024
bade4cc
chore: test contributing pipeline
ABC2015 Nov 28, 2024
d3f6c59
chore: test contributing pipeline
ABC2015 Nov 28, 2024
7801f0b
chore: test contributing pipeline
ABC2015 Nov 28, 2024
d2b1d12
chore: test contributing pipeline
ABC2015 Nov 28, 2024
fec9e18
chore: test contributing pipeline
ABC2015 Nov 28, 2024
8d9f212
chore: test contributing pipeline
ABC2015 Nov 28, 2024
79364bf
chore: test contributing pipeline
ABC2015 Nov 28, 2024
47949a7
chore: test contributing pipeline
ABC2015 Nov 28, 2024
908288f
chore: test contributing pipeline
ABC2015 Nov 28, 2024
ac5090b
chore: additional to workflow configurations
ABC2015 Nov 28, 2024
c2caf7c
chore: additional to workflow configurations
ABC2015 Nov 28, 2024
4a2a6e0
chore: additional pipeline update
ABC2015 Nov 30, 2024
30e0e94
feat: add interface, evluation, and hooks
ABC2015 Nov 30, 2024
f495d83
chore: add openfeature prefix to avoid future potential naming conflicts
ABC2015 Dec 1, 2024
637c683
chore: add depedency injection for cleaner product for cleaner produc…
ABC2015 Dec 1, 2024
99ed80f
chore: update pipeline rules
ABC2015 Dec 5, 2024
f03de81
ci: add google chat notifications
beeme1mr Dec 2, 2024
ea635b9
chore: update pipeline rules
ABC2015 Dec 5, 2024
e494432
chore: update pipeline rules
ABC2015 Dec 5, 2024
d77b295
chore: update pipeline rules
ABC2015 Dec 5, 2024
bb09a7c
ci: fix pr lint workflow permission issue
beeme1mr Dec 5, 2024
78b81f6
chore: remove .dart_tool from checkin
ABC2015 Mar 19, 2025
81fc31b
chore: update pipeline rules
ABC2015 Dec 5, 2024
4ab21e9
DCO Remediation: Add missing Signed-off-by lines for previous commits
ABC2015 Dec 5, 2024
101c236
chore: update pipeline rules
ABC2015 Dec 6, 2024
f4846e1
chore: Testing the prepare-commit-msg hook
ABC2015 Dec 6, 2024
65f5c1c
chore: add helpful developer tools for commits
ABC2015 Dec 6, 2024
9ec4d18
chore: Test auto sign-off commit
ABC2015 Dec 6, 2024
3b454d6
chore: Testing auto sign-off via hook
ABC2015 Dec 6, 2024
68082be
chore: update commit hooks
ABC2015 Dec 6, 2024
e38e433
ci: update parent pipeline
ABC2015 Dec 7, 2024
e8eab4b
ci: update parent pipeline
ABC2015 Dec 7, 2024
6a18dac
ci: update parent pipeline
ABC2015 Dec 7, 2024
b2e93f0
chore: remove dart_tool from checkin
ABC2015 Mar 19, 2025
15f411c
feat(core): add hook system and evaluation context (#11)
brian-chebon Dec 10, 2024
87a0d81
ci: add minimum Dart SDK version to workflow
ABC2015 Dec 10, 2024
f13360d
feat(logging): integrate logging and client-provider domain bindings …
ubabar123 Dec 11, 2024
88696b4
chore: update workflow for SDK
ABC2015 Dec 12, 2024
e8d9297
chore: update workflow for SDK (#16)
ABC2015 Dec 12, 2024
4601beb
chore: cleanup workflow (#17)
ABC2015 Dec 12, 2024
873490a
chore: cleanup workflow
ABC2015 Dec 12, 2024
cdefa47
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
19acdf4
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
440b04e
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
8c7c139
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
a0355e0
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
910977c
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
d612957
chore(workflow): cleanup workflow (#17)
ABC2015 Dec 12, 2024
64cf419
chore: update pipeline workflow
ABC2015 Dec 14, 2024
ec92af3
feat(provider): implement provider extensibility features (#18)
brian-chebon Dec 13, 2024
cb5d975
feat(eventing): add support for state change reactions (#20)
ubabar123 Dec 14, 2024
4606caf
chore: update pipeline workflow
ABC2015 Dec 14, 2024
a76fac6
chore: update dart langauge version minimum
ABC2015 Dec 17, 2024
0f1bd3a
chore: stop tracking .dart_tool/package_config.json
ABC2015 Dec 17, 2024
ed1863e
test(core): implement feature provider and client test suites (#21)
brian-chebon Dec 17, 2024
5cf4b64
chore: Stop tracking .dart_tool/package_config.json
ABC2015 Dec 17, 2024
16a89f7
chore: update git-ignore
ABC2015 Dec 18, 2024
6e19847
chore: update git-attributes
ABC2015 Dec 18, 2024
1589982
chore: remove .dart_tool from tracking and add it to .gitignore
ABC2015 Dec 18, 2024
60cfaff
ci: add validate file encoding and min version update
ABC2015 Dec 18, 2024
3de9f44
ci: remove validate file encoding after testing
ABC2015 Dec 18, 2024
44fdfb0
feat(sdk): implement core features and unit tests (#24)
brian-chebon Feb 12, 2025
36a6f1d
ci: update notification to use a different GH action (#23)
beeme1mr Jan 2, 2025
4716650
ci: fixed the notificaiton webhook URL
beeme1mr Jan 2, 2025
0a9086d
chore: update github workflow and dart SDK version
ABC2015 Feb 28, 2025
090c7da
chore: dart sdk 3.7.1 update
ABC2015 Feb 28, 2025
8db7b50
chore: dart sdk 3.7.1 update
ABC2015 Feb 28, 2025
0f8aa11
chore: workflow cleanup
ABC2015 Feb 28, 2025
9366d33
feat: release v.0.0.1-pre+1 (#25)
ABC2015 Mar 14, 2025
e5ec49a
chore: update release please config (#29)
beeme1mr Mar 14, 2025
1863279
chore: update release config name
beeme1mr Mar 14, 2025
34bd703
chore: remove readme from release please config
beeme1mr Mar 14, 2025
4b55b8c
chore(main): release open_feature_dart_server_sdk 0.0.2 (#31)
openfeaturebot Mar 14, 2025
b873f8e
chore: move repo up one level
ABC2015 Mar 14, 2025
1ee2fe3
chore: love repo up one level
ABC2015 Mar 14, 2025
286e66f
chore: move code into the root directory (#32)
ABC2015 Mar 14, 2025
cd125b0
chore: update release please config (#33)
beeme1mr Mar 14, 2025
b4baae4
chore: update version in readme
beeme1mr Mar 14, 2025
5915331
chore: add readme to release please
beeme1mr Mar 14, 2025
b63d146
chore: update pubspec yaml naming convention
ABC2015 Mar 14, 2025
0ccc8ee
chore: update readme
beeme1mr Mar 14, 2025
2500a00
chore: update yaml workflow
ABC2015 Mar 14, 2025
c40ecb0
chore(main): release open_feature_dart_server_sdk 0.0.3 (#35)
openfeaturebot Mar 14, 2025
eac216d
chore: add license file
beeme1mr Mar 14, 2025
f91ce48
chore: update package name
ABC2015 Mar 14, 2025
fecf172
chore: update pubdev package name (#38)
ABC2015 Mar 14, 2025
b350a2c
ci: wire up the release process
beeme1mr Mar 14, 2025
16eb0e2
ci: disable component in git tag
beeme1mr Mar 14, 2025
7446c71
chore(main): release 0.0.4 (#39)
openfeaturebot Mar 14, 2025
f4f2877
chore: update the dart publishing logic
beeme1mr Mar 14, 2025
38aa9f3
chore(main): release 0.0.5 (#40)
openfeaturebot Mar 14, 2025
34508b8
chore: move publishing step to a separate workflow (#41)
beeme1mr Mar 14, 2025
cd09b18
chore(main): release 0.0.6 (#42)
openfeaturebot Mar 14, 2025
af820b4
chore: rm lock file
ABC2015 Mar 30, 2025
5041841
chore: update validation workflow
ABC2015 Mar 16, 2025
7dde87b
chore: fix issues in dry run (#45)
brian-chebon Mar 17, 2025
15c0e98
chore(main): release 0.0.7 (#46)
openfeaturebot Mar 19, 2025
28e4387
chore: add release please branch name for Validation check
ABC2015 Mar 19, 2025
81ed32a
chore: update gitignore
ABC2015 Mar 19, 2025
86b22a1
feat: release v.0.0.1-pre+1 (#25)
ABC2015 Mar 14, 2025
7c31bcb
chore(main): release open_feature_dart_server_sdk 0.0.2 (#31)
openfeaturebot Mar 14, 2025
1d02871
chore: move code into the root directory (#32)
ABC2015 Mar 14, 2025
f2560ff
chore: update pubspec yaml - remove pre version (#36)
ABC2015 Mar 14, 2025
fbba44d
chore(main): release 0.0.5 (#40)
openfeaturebot Mar 14, 2025
dd7bb03
chore(main): release 0.0.6 (#42)
openfeaturebot Mar 14, 2025
0979aa4
ci: add google chat notifications (#7)
beeme1mr Dec 2, 2024
15ca451
ci: update notification to use a different GH action (#23)
beeme1mr Jan 2, 2025
ee7ddde
ci: fixed the notificaiton webhook URL
beeme1mr Jan 2, 2025
56b4581
feat: release v.0.0.1-pre+1 (#25)
ABC2015 Mar 14, 2025
ff5c0af
chore(main): release open_feature_dart_server_sdk 0.0.2 (#31)
openfeaturebot Mar 14, 2025
793f80b
chore: move code into the root directory (#32)
ABC2015 Mar 14, 2025
a32146f
chore: update pubspec yaml - remove pre version (#36)
ABC2015 Mar 14, 2025
5c412ab
ci: wire up the release process
beeme1mr Mar 14, 2025
dcb1fa9
chore: update the dart publishing logic
beeme1mr Mar 14, 2025
efd0a2b
chore: move publishing step to a separate workflow (#41)
beeme1mr Mar 14, 2025
2c7388c
chore: update dartsdk minimum to latest version 3.7.2 (#44)
ABC2015 Mar 17, 2025
65f5bd0
feat: release v.0.0.1-pre+1 (#25)
ABC2015 Mar 14, 2025
6de6969
chore(main): release open_feature_dart_server_sdk 0.0.2 (#31)
openfeaturebot Mar 14, 2025
6a233df
chore: rm lock file
ABC2015 Mar 30, 2025
14838f7
chore: move code into the root directory (#32)
ABC2015 Mar 14, 2025
ef5e7e9
chore: update readme
beeme1mr Mar 14, 2025
9ecf9bf
chore: update pubspec yaml - remove pre version (#36)
ABC2015 Mar 14, 2025
1535abc
chore(main): release 0.0.6 (#42)
openfeaturebot Mar 14, 2025
97118f2
chore: update dartsdk minimum to latest version 3.7.2 (#44)
ABC2015 Mar 17, 2025
ff59d24
chore: remove old release version
ABC2015 Mar 27, 2025
5fdb4bb
chore: update readme pub version and API reference
ABC2015 Mar 30, 2025
4c0294c
feat: release v.0.0.1-pre+1 (#25)
ABC2015 Mar 14, 2025
fc1af44
chore(main): release open_feature_dart_server_sdk 0.0.2 (#31)
openfeaturebot Mar 14, 2025
419f6cf
chore: move code into the root directory (#32)
ABC2015 Mar 14, 2025
4576398
chore: update pubspec yaml - remove pre version (#36)
ABC2015 Mar 14, 2025
997156b
chore: update dartsdk minimum to latest version 3.7.2 (#44)
ABC2015 Mar 17, 2025
4b1622d
chore(main): release 0.0.7 (#46)
openfeaturebot Mar 19, 2025
0147e8d
chore: workflow cleanup (#48)
ABC2015 Mar 27, 2025
e38e9c8
chore: update readme for
ABC2015 Mar 30, 2025
9f725b8
chore: update workflow github badge
ABC2015 Mar 30, 2025
049c123
chore: resolve conflicts and cleanup workflows
ABC2015 Mar 30, 2025
ced02ee
chore: update validation workflow
ABC2015 Mar 30, 2025
458890f
chore: update readme
ABC2015 Mar 30, 2025
c638263
chore: add evaluation details and OpenTelemetry to hooks (#51)
brian-chebon Mar 31, 2025
ba197ca
chore: update gitignore file
ABC2015 Apr 1, 2025
e3fe14b
chore: merge branch 'development' of github.com
ABC2015 Apr 1, 2025
424cdd9
chore: update notification workflows
ABC2015 Apr 1, 2025
b30b0fe
chore: update notification workflows
ABC2015 Apr 1, 2025
07bcd04
chore: update readme (#53)
brian-chebon Apr 2, 2025
880b08b
chore(main): release 0.0.8 (#50)
openfeaturebot Apr 2, 2025
39b1e5e
chore: remove unncessary workflows
ABC2015 Apr 7, 2025
aa5fcdf
chore: update ignore and coverage workflow
ABC2015 Apr 8, 2025
248d1cc
chore: test code coverage
ABC2015 Apr 8, 2025
d675f10
chore: remove unncessary yaml files
ABC2015 Apr 8, 2025
6dc0504
chore: remove more workflows
ABC2015 Apr 8, 2025
af35a13
chore: update folder path for workflow
ABC2015 Apr 8, 2025
338f7d1
chore: update code coverage workflow
ABC2015 Apr 8, 2025
664e072
chore: update code coverage workflow
ABC2015 Apr 8, 2025
75b7155
chore: update code coverage workflow
ABC2015 Apr 8, 2025
a8c02d7
chore: update code coverage workflow
ABC2015 Apr 8, 2025
f45a766
chore: update dart sdk version
ABC2015 Aug 28, 2025
ddf2a9f
chore: add provider fixes (#61)
brian-chebon Jun 11, 2025
c7294f5
chore: move caching from client to provider level per OpenFeature (#64)
brian-chebon Jun 18, 2025
072f85d
chore: development to main (#62)
brian-chebon Jun 16, 2025
d252192
chore: development to main (#66)
brian-chebon Jun 18, 2025
5905a68
chore(main): release 0.0.10 (#63)
openfeaturebot Jun 18, 2025
109764f
chore: sync dev and main
ABC2015 Aug 28, 2025
e0532d0
chore: sync dev and main
ABC2015 Aug 28, 2025
24bbc8e
chore: update failed contributor workflow pipeline
ABC2015 Aug 30, 2025
8a465f3
chore: Development to Main (#69)
brian-chebon Aug 28, 2025
f8fa4da
chore(main): release 0.0.11 (#70)
openfeaturebot Aug 28, 2025
98d8f2b
docs: update install version and links (#68)
beeme1mr Aug 30, 2025
415f594
chore(main): release 0.0.12 (#71)
openfeaturebot Sep 3, 2025
f16931a
chore: update pipeline
ABC2015 Sep 29, 2025
03f6a1c
chore: update workflow
ABC2015 Sep 29, 2025
b4fce7e
chore: update workflow
ABC2015 Sep 29, 2025
7b247ed
chore: fix provider not in ready state (#72)
brian-chebon Sep 29, 2025
3b730c9
chore: update contributor workflow
ABC2015 Oct 1, 2025
400db6c
Merge branch 'main' into development
brian-chebon Oct 1, 2025
6b7031a
chore: update with dev upstream
brian-chebon Oct 1, 2025
bc4608e
chore: update with dev upstream
brian-chebon Oct 1, 2025
b364b9b
chore: update pubspec and validation
brian-chebon Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 85 additions & 42 deletions .github/workflows/contributor-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,98 +16,141 @@ jobs:
analyze-core:
name: Analyze Core Dart Server SDK
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
dart-version: stable
# with:
# sdk: stable # (optional; stable is the default)

# Find the Dart package root (directory that has pubspec.yaml).
- name: Locate package root
id: pkg
shell: bash
run: |
set -euo pipefail
# Prefer repo root if it has a pubspec.yaml, otherwise take the first match.
if [[ -f "pubspec.yaml" ]]; then
echo "dir=." >> "$GITHUB_OUTPUT"
else
PKG_DIR=$(git ls-files | grep -E '(^|/)(pubspec\.yaml)$' | head -n 1 | xargs -r dirname)
if [[ -z "${PKG_DIR:-}" ]]; then
echo "No pubspec.yaml found in repository." >&2
exit 1
fi
echo "dir=$PKG_DIR" >> "$GITHUB_OUTPUT"
fi
echo "Using package dir: $(cat $GITHUB_OUTPUT)"

- name: Install Dependencies
working-directory: ${{ steps.pkg.outputs.dir }}
run: |
echo "Installing dependencies for core SDK..."
if ! dart pub get; then
echo "❌ Failed to install dependencies for the core SDK. Exiting..."
exit 1
fi
dart pub get

- name: Check for Outdated Dependencies
working-directory: ${{ steps.pkg.outputs.dir }}
run: |
echo "Checking for outdated dependencies..."
dart pub outdated || true

- name: Run Static Analysis
- name: Run Static Analysis (capture & show)
id: analyze
working-directory: ${{ steps.pkg.outputs.dir }}
shell: bash
run: |
set -o pipefail
echo "Running static analysis for core SDK..."
if ! dart analyze lib/ > analysis_report.txt 2> error_log.txt; then
echo "❌ Static analysis failed with errors. See details below:"
cat error_log.txt
exit 1
# Write both stdout and stderr to files while also echoing to the log.
# Keep stdout and stderr separate so we can categorize later.
# stdout -> analysis_report.txt, stderr -> error_log.txt
{ dart analyze lib/ | tee analysis_report.txt; } 2> >(tee error_log.txt >&2)
STATUS=${PIPESTATUS[0]}
if [[ $STATUS -ne 0 ]]; then
echo "❌ Static analysis failed. See error_log.txt below:"
sed -n '1,200p' error_log.txt || true
else
echo "✅ Static analysis completed successfully. No critical errors found."
fi
echo "status=$STATUS" >> "$GITHUB_OUTPUT"
exit $STATUS || true # Don’t fail the step here; allow categorization + artifacts.

- name: Categorize and Count Analysis Results
if: always()
working-directory: ${{ steps.pkg.outputs.dir }}
shell: bash
run: |
echo "Categorizing analysis results..."

grep -i "info" analysis_report.txt > info_report.txt || echo "No informational messages found."
grep -i "warning" analysis_report.txt > warning_report.txt || echo "No warnings found."
grep -i "error" analysis_report.txt > error_report.txt || echo "No errors found."
touch analysis_report.txt error_log.txt
# Create categorized files (empty if none)
grep -i "info" analysis_report.txt > info_report.txt || true
grep -i "warning" analysis_report.txt > warning_report.txt || true
grep -i "error" analysis_report.txt > error_report.txt || true

INFO_COUNT=$(wc -l < info_report.txt || echo 0)
WARNING_COUNT=$(wc -l < warning_report.txt || echo 0)
ERROR_COUNT=$(wc -l < error_report.txt || echo 0)

echo ""
echo "Summary of analysis results:"
echo "Informational messages: $INFO_COUNT"
echo "Warnings: $WARNING_COUNT"
echo "Errors: $ERROR_COUNT"
echo ""

if [[ $INFO_COUNT -gt 0 ]]; then
echo "Informational messages:"
cat info_report.txt
echo ""
fi
if [[ $WARNING_COUNT -gt 0 ]]; then
echo "Warnings:"
cat warning_report.txt
echo ""
echo "Warnings (first 200 lines):"
sed -n '1,200p' warning_report.txt
fi

if [[ $ERROR_COUNT -gt 0 ]]; then
echo "Errors:"
cat error_report.txt
echo ""
echo "Errors (first 200 lines):"
sed -n '1,200p' error_report.txt
fi

- name: Identify Specific Commits for Issues
if: always()
working-directory: ${{ steps.pkg.outputs.dir }}
shell: bash
run: |
echo "Identifying specific commits for issues in the core SDK..."

while IFS= read -r line; do
file=$(echo $line | awk -F ':' '{print $1}')
if [[ -n "$file" ]]; then
git_log=$(git log -n 1 --pretty=format:"%h by %an <%ae>" -- "$file")
echo "Identifying specific commits for files mentioned by analyzer..."
# Collect .dart file paths mentioned by analyzer; tolerate empty sets
FILES=$(awk -F: '{print $1}' analysis_report.txt | grep -E '\.dart$' | sort -u || true)

if [[ -z "$FILES" ]]; then
echo "No files with issues were reported by the analyzer."
exit 0
fi

for file in $FILES; do
if [[ -f "$file" ]]; then
git_log=$(git -C "$GITHUB_WORKSPACE" log -n 1 --pretty=format:"%h by %an <%ae>" -- "$file" || true)
echo "File: $file"
echo "Issue: $line"
echo "Commit: $git_log"
else
echo "No file information could be extracted for: $line"
echo "Last change: ${git_log:-unknown}"
echo ""
fi
done < analysis_report.txt
done

- name: Upload Analysis Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: core-sdk-analysis
path: |
dart-server-sdk-openfeature/analysis_report.txt
dart-server-sdk-openfeature/error_log.txt
dart-server-sdk-openfeature/info_report.txt
dart-server-sdk-openfeature/warning_report.txt
dart-server-sdk-openfeature/error_report.txt
retention-days: 7
${{ steps.pkg.outputs.dir }}/analysis_report.txt
${{ steps.pkg.outputs.dir }}/error_log.txt
${{ steps.pkg.outputs.dir }}/info_report.txt
${{ steps.pkg.outputs.dir }}/warning_report.txt
${{ steps.pkg.outputs.dir }}/error_report.txt
retention-days: 7

# Fail the job if the analyzer actually failed.
- name: Fail if analyzer failed
if: ${{ steps.analyze.outputs.status != '0' }}
run: |
echo "❌ Failing job because the analyzer returned a non-zero exit code."
exit 1
3 changes: 0 additions & 3 deletions .github/workflows/parent-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
branch_name: ${{ needs.determine-workflow.outputs.branch_name }}
event_name: ${{ needs.determine-workflow.outputs.event_name }}


#commented out for now, as we are not running coverage on this repo(for testing).

# trigger-coverage:
Expand All @@ -55,6 +54,4 @@ jobs:
uses: ./.github/workflows/contributor-workflow.yml
with:
branch_name: ${{ needs.determine-workflow.outputs.branch_name }}

event_name: ${{ needs.determine-workflow.outputs.event_name }}

2 changes: 1 addition & 1 deletion .github/workflows/validation-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
git fetch origin $BASE_BRANCH

# Extract all commit messages excluding auto-generated ones
INVALID_COMMITS=$(git log origin/$BASE_BRANCH..HEAD --pretty=format:"%s" \
INVALID_COMMITS=$(git log --no merges origin/$BASE_BRANCH..HEAD --pretty=format:"%s" \
| grep -vE "^(Merge pull request|Initial commit)" \
| grep -vE "^(Merge remote-tracking branch|Merge pull request)" \
| grep -vE "^(Merge branch|DCO Remediation|Signed-off-by)" \
Expand Down
18 changes: 0 additions & 18 deletions lib/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ class FeatureClient {
(_metrics.errorCounts[result.errorCode!.name] ?? 0) + 1;
}



_metrics.responseTimes.add(DateTime.now().difference(startTime));
return result.value;
} catch (e) {
Expand All @@ -131,7 +129,6 @@ class FeatureClient {
return defaultValue;
} finally {
// Execute finally hooks

await _hookManager.executeHooks(HookStage.FINALLY, flagKey, context);
}
}
Expand All @@ -149,8 +146,6 @@ class FeatureClient {
);

/// Evaluate string flag


Future<String> getStringFlag(
String flagKey, {
EvaluationContext? context,
Expand All @@ -163,8 +158,6 @@ class FeatureClient {
);

/// Evaluate integer flag


Future<int> getIntegerFlag(
String flagKey, {
EvaluationContext? context,
Expand All @@ -175,9 +168,6 @@ class FeatureClient {
(ctx) => _provider.getIntegerFlag(flagKey, defaultValue, context: ctx),
context: context?.attributes,
);



/// Evaluate double flag
Future<double> getDoubleFlag(
String flagKey, {
Expand All @@ -189,10 +179,6 @@ class FeatureClient {
(ctx) => _provider.getDoubleFlag(flagKey, defaultValue, context: ctx),
context: context?.attributes,
);


/// Evaluate object flag

Future<Map<String, dynamic>> getObjectFlag(
String flagKey, {
EvaluationContext? context,
Expand All @@ -203,10 +189,6 @@ class FeatureClient {
(ctx) => _provider.getObjectFlag(flagKey, defaultValue, context: ctx),
context: context?.attributes,
);


/// Get client metrics

ClientMetrics getMetrics() => _metrics;

/// Access to provider for management operations
Expand Down
15 changes: 0 additions & 15 deletions lib/feature_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ abstract class FeatureProvider {
abstract class CachedFeatureProvider implements FeatureProvider {
final ProviderConfig _config;
final ProviderMetadata _metadata;

ProviderState _state = ProviderState.NOT_READY;

// Provider-level cache
Expand All @@ -206,11 +205,6 @@ abstract class CachedFeatureProvider implements FeatureProvider {
ProviderMetadata get metadata => _metadata;

@override

ProviderMetadata get metadata => _metadata;

@override

String get name => _metadata.name;

/// Set provider state
Expand Down Expand Up @@ -478,38 +472,32 @@ class InMemoryProvider extends CachedFeatureProvider {

setState(ProviderState.CONNECTING);



try {
// Simulate initialization work
await Future.delayed(Duration(milliseconds: 10));
setState(ProviderState.READY);
} catch (e) {
setState(ProviderState.ERROR);

rethrow;
}
}

@override
Future<void> connect() async {
if (state == ProviderState.SHUTDOWN) {

throw ProviderException(
'Cannot connect a shutdown provider',
code: ErrorCode.PROVIDER_NOT_READY,
);
}


setState(ProviderState.CONNECTING);

try {
await Future.delayed(Duration(milliseconds: 10));
setState(ProviderState.READY);
} catch (e) {
setState(ProviderState.ERROR);

rethrow;
}
}
Expand All @@ -523,11 +511,9 @@ class InMemoryProvider extends CachedFeatureProvider {
void _checkState() {
if (state != ProviderState.READY) {
throw ProviderException(
t
'Provider not in READY state: ${state.name}',
code: ErrorCode.PROVIDER_NOT_READY,
details: {'currentState': state.name},

);
}
}
Expand Down Expand Up @@ -723,4 +709,3 @@ t
}
}


Loading
Loading