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

chore: add preinst script unit tests πŸ§ͺ #3942

Merged
merged 10 commits into from
Sep 6, 2023
Merged

chore: add preinst script unit tests πŸ§ͺ #3942

merged 10 commits into from
Sep 6, 2023

Conversation

ahasna
Copy link
Contributor

@ahasna ahasna commented Sep 5, 2023

  • Adds unittests to preinst scripts πŸ”¬
  • Updates preinst scrips to use /bin/bash as an interpreter πŸ—£οΈ
  • Refactors pr-einstall scripts to be more testable πŸ§ͺ
  • Make CI logs slightly more colourful 🎨

@linear
Copy link

linear bot commented Sep 5, 2023

PLA-759 Write unit tests for preinst scripts

We could for example create a Docker image with dummy code and config inside and run the script against it to check it performs as expected

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #3942 (918df84) into main (d1a9ab3) will decrease coverage by 0%.
Report is 8 commits behind head on main.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #3942    +/-   ##
======================================
- Coverage     73%     72%    -0%     
======================================
  Files        367     366     -1     
  Lines      56041   56789   +748     
  Branches   56041   56789   +748     
======================================
+ Hits       40632   40952   +320     
- Misses     13344   13751   +407     
- Partials    2065    2086    +21     

see 39 files with indirect coverage changes

πŸ“£ We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ahasna ahasna requested a review from tomjohnburton September 5, 2023 13:35
@ahasna ahasna merged commit c45db01 into main Sep 6, 2023
@ahasna ahasna deleted the chore/PLA-759 branch September 6, 2023 09:42
dandanlen pushed a commit that referenced this pull request Sep 6, 2023
* chore: add `preinst` script unit tests πŸ§ͺ

* chore: test refactored preinst script in development

* fix: `#DEBHELPER#`tag

* debug: use bash as the preinst interpreter

* chore: add CI for bats tests πŸ¦‡

* fix: set shell to bash

* chore: remove `exit 0`

* chore: colorful logs 🌈

* chore: add engine preinst tests 🀝

* chore: add placeholder for updating engine config tests
dandanlen pushed a commit that referenced this pull request Sep 6, 2023
* chore: add `preinst` script unit tests πŸ§ͺ

* chore: test refactored preinst script in development

* fix: `#DEBHELPER#`tag

* debug: use bash as the preinst interpreter

* chore: add CI for bats tests πŸ¦‡

* fix: set shell to bash

* chore: remove `exit 0`

* chore: colorful logs 🌈

* chore: add engine preinst tests 🀝

* chore: add placeholder for updating engine config tests
syan095 added a commit that referenced this pull request Sep 8, 2023
…on-integration

* origin/main:
  fix: scale encoding skip phantom data (#3967)
  chore: make platform team code owner of CI settings.toml and localnet (#3957)
  fix: prefer finalize_signed_extrinsic in engine (#3956)
  fix: CanonicalAssetPair encoding issue (#3958)
  chore(bouncer): Update sdk to 0.0.40 (#3945)
  fix: tweak cli generate-keys output (#3943)
  chore: add `preinst` script unit tests πŸ§ͺ (#3942)
  Better LP/Broker API RPC Errors (#3931)
  fix: update substrate ref to use Kademlia fix (#3941)
  doc: update funding readme with redemption restrictions (#3914)
  feat: PRO-474 broadcast safe mode (#3902)
  feat: more forgiving dot address parsing (#3938)
  fix: duplicate logging (#3939)
  feat: new lp interface (#3886)

# Conflicts:
#	Cargo.lock
#	state-chain/cf-integration-tests/Cargo.toml
#	state-chain/cf-integration-tests/src/authorities.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants