Skip to content
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

feat(Fault Management): allow fault providers to define shelve durations #7849

Merged
merged 22 commits into from
Oct 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1d98027
refactor: clean up FaultManagementView code
ozyx Sep 18, 2024
62b574a
feat: providers can now provide "Shelve Duration" options
ozyx Sep 18, 2024
4df923f
fix(exampleFaultSource): support `getShelveDurations`
ozyx Sep 19, 2024
117aff0
a11y: aria label for fault management list item
ozyx Sep 23, 2024
1f87b41
a11y(FaultManagement): more labels
ozyx Sep 24, 2024
0711d10
refactor: eliminate some faultUtils and refactor locator() out of tests
ozyx Sep 24, 2024
a9a4bb7
docs: add some more docs to fault management api
ozyx Sep 24, 2024
487a161
refactor: make for loop more readable
ozyx Sep 25, 2024
1a395e1
test: use static faults when testing
ozyx Sep 25, 2024
2bf8de6
fix: set a timestamp for static faults and subtract so we get faults …
ozyx Sep 25, 2024
8236bf7
refactor: autoformat
ozyx Sep 25, 2024
94e87ea
chore: add missing copyright header
ozyx Sep 25, 2024
0d69c10
fix: use as default parameter to get value as method is called
ozyx Sep 25, 2024
35f3e60
Merge branch 'master' into vipergc-574
akhenry Sep 30, 2024
408325d
refactor: make magic number a const
ozyx Sep 30, 2024
06d5b90
Merge branch 'master' into vipergc-574
ozyx Sep 30, 2024
3d25f66
fix(codecov): use codecov github action to upload
ozyx Oct 1, 2024
140eb69
fix: generate the report
ozyx Oct 1, 2024
7d742ca
build: update circleci yml to use codecov orb
ozyx Oct 1, 2024
ffd0e8c
build: remove codecov scripts and package
ozyx Oct 1, 2024
ccdbc96
build: don't use the orb because things can't be easy
ozyx Oct 1, 2024
931aa56
build: only use `sudo` if we ain't da root user
ozyx Oct 1, 2024
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
Prev Previous commit
Next Next commit
build: don't use the orb because things can't be easy
- nasa org disallows "third party" orbs
  • Loading branch information
ozyx committed Oct 1, 2024
commit ccdbc9627067c258c6496fcf96e1af87e4e0163e
48 changes: 41 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: 2.1
orbs:
node: circleci/node@5.2.0
browser-tools: circleci/browser-tools@1.3.0
codecov: codecov/codecov@4.2.0
executors:
pw-focal-development:
docker:
Expand Down Expand Up @@ -38,16 +37,45 @@ commands:
ls -latR >> /tmp/artifacts/dir.txt
- store_artifacts:
path: /tmp/artifacts/
download_verify_codecov_cli:
description: 'Download and verify Codecov CLI'
steps:
- run:
name: Download and verify Codecov CLI
command: |
# Download Codecov CLI
curl -Os https://cli.codecov.io/latest/linux/codecov

# Import Codecov's GPG key
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import

# Download and verify the SHA256SUM and its signature
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM

# Verify the checksum
shasum -a 256 -c codecov.SHA256SUM

# Make the codecov executable
sudo chmod +x codecov
./codecov --help
generate_e2e_code_cov_report:
description: "Generate e2e code coverage artifacts and publish to codecov.io. Needed to that we can ignore the exit code status of the npm run test"
parameters:
suite:
type: string
steps:
- run: npm run cov:e2e:report || true
- codecov/upload:
file: ./coverage/e2e/lcov.info
flags: e2e-<<parameters.suite>>
- download_verify_codecov_cli
- run:
name: Upload coverage report to Codecov
command: |
./codecov --verbose upload-process --disable-search \
-t $CODECOV_TOKEN \
-n 'e2e-<<parameters.suite>>'-${CIRCLE_WORKFLOW_ID} \
-F e2e-<<parameters.suite>> \
-f ./coverage/e2e/lcov.info
jobs:
npm-audit:
parameters:
Expand Down Expand Up @@ -84,9 +112,15 @@ jobs:
mkdir -p dist/reports/tests/
TESTFILES=$(circleci tests glob "src/**/*Spec.js")
echo "$TESTFILES" | circleci tests run --command="xargs npm run test" --verbose
- codecov/upload:
file: ./coverage/unit/lcov.info
flags: unit
- download_verify_codecov_cli
- run:
name: Upload coverage report to Codecov
command: |
./codecov --verbose upload-process --disable-search \
-t $CODECOV_TOKEN \
-n 'unit-test'-${CIRCLE_WORKFLOW_ID} \
-F unit \
-f ./coverage/unit/lcov.info
- store_test_results:
path: dist/reports/tests/
- store_artifacts:
Expand Down
Loading