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

ci: Execute interactive installer test [DEV-1944] #460

Merged
merged 157 commits into from
Dec 15, 2022

Conversation

ankurdotb
Copy link
Contributor

No description provided.

@ankurdotb ankurdotb changed the base branch from main to develop December 15, 2022 10:15
@abdulla-ashurov abdulla-ashurov self-assigned this Dec 15, 2022
@ankurdotb ankurdotb enabled auto-merge (squash) December 15, 2022 21:58
@ankurdotb ankurdotb disabled auto-merge December 15, 2022 22:02
@ankurdotb ankurdotb merged commit 366f5c8 into develop Dec 15, 2022
@ankurdotb ankurdotb deleted the remove-configure-cmd branch December 15, 2022 22:02
ankurdotb added a commit that referenced this pull request Dec 21, 2022
* remove configureCmd

* remove post_install method from installer.py

* remove add-observer.sh from upgrade/cosmovisor

* remove add-observer.sh from interactive-install

* remove post_install method usage

* keep post_install method empty

* Update config.toml and app.toml defaults

* Bump alpine image version to latest

* Update default persistent flags

* Set --gas flag correctly

* Delete legacy interactive test folder

* Add installer test to workflow

* Update package-lock.json

* Fix workflow syntax error in interactive-installer job

* add questionary to bump cosmovisor

* move bump logic to setup_cosmovisor

* Check for success

* Change existing install check

* Update existing installation check

* Update installer check

* Fix linter issue

* Update test.yml

* Fix linter error

* Update test.yml

* Debugging installer flow

* Update build.yml

* Set up tmate on failure

* Try Andrew's technique

* Change home path

* Fix home path

* Update installer.py

* auto detect os arch for cosmovisor binary

* set default bump cosmovisor to yes

* set correct OS arch

* keep first install steps only in setup_cosmovisor

* set cosmovisor ENV vars

* remove sudo from export

* write to .profile using python

* Move filesx

* fix path to .profile

* log cosmovisor version when upgrade

* update .profile for current session

* exec source ~/.profile without stdout

* add execute permission

* Update installer.py

* add try/except

* get version anyway

* suppress err in bash

* add new line

* Delete outdated Cosmovisor check

* Create answers.txt

* Disable tmate

* use v1.2.0 instead

* try appending to .bashrc

* try with os.environ

* compare version and ask for bump

* rename function

* suppress error

* wrap std output in triple quotes

* add logs

* fix getting current version

* handle edge case

* add more info

* fix typo

* remove logs

* semantics

* add bump logic

* avoid fresh install during upgrade

* Debug only

* Update build.yml

* move new binary to installation directory

* try cosmovisor init

* extract to methods

* set ENV vars right after cosmovisor install

* edit upgrade steps

* add logs

* keep only interview logic at ask

* add fixes

* move info log

* minor fix

* stop and reload cosmovisor systemd during bump

* fix fresh install

* add logs

* more logs

* more log

* logs

* more logs

* add try except

* logs

* fix

* logs

* logs

* logs

* logs

* logs

* fix

* fix

* fix env var check

* remove unused function

* move getting cosmovisor download url to its own function

* check if .bashrc is writable or not

* fix syntax issues

* change ~ ownership to cheqd

* fix quotes syntax

* temporarily disable editing current user .bashrc

* remove is_file_writable

* write to file and read version for it

* remove using os

* add logs

* use tee

* remove debug logs

* write to bashrc python way

* add fix

* update installer.py

* Check default shell

* extract download and unzip to its own method

* reuse download_and_unzip

* add logs

* revert changes

* fix wrap in directory issue for versions lower than 1.0.1

* Update build.yml

* First we should check all existing different OS release,
then we should report about failure

* Add cosmovisor path to default PATH

* Remove previous commit code

* Reverse code

* Change runner from ubuntu-latest to ubuntu-20.04

* Fix linter mistakes

* Reset to version in develop

* Reset more correctly to develop branch

* Fix merge errors

* Delete Dockerfile approach

* Move installer test to test pipeline

* Rename to install from scratch

* Create upgrade-existing.txt

* Add upgrade path test

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Alexander Kolesov <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Filip Djokic <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
ankurdotb added a commit that referenced this pull request Dec 21, 2022
* Update legacy version in test pipeline

* Update comment in app.gox

* Provide github token

* Remove strip components

* ci: Execute interactive installer test [DEV-1944] (#460)

* remove configureCmd

* remove post_install method from installer.py

* remove add-observer.sh from upgrade/cosmovisor

* remove add-observer.sh from interactive-install

* remove post_install method usage

* keep post_install method empty

* Update config.toml and app.toml defaults

* Bump alpine image version to latest

* Update default persistent flags

* Set --gas flag correctly

* Delete legacy interactive test folder

* Add installer test to workflow

* Update package-lock.json

* Fix workflow syntax error in interactive-installer job

* add questionary to bump cosmovisor

* move bump logic to setup_cosmovisor

* Check for success

* Change existing install check

* Update existing installation check

* Update installer check

* Fix linter issue

* Update test.yml

* Fix linter error

* Update test.yml

* Debugging installer flow

* Update build.yml

* Set up tmate on failure

* Try Andrew's technique

* Change home path

* Fix home path

* Update installer.py

* auto detect os arch for cosmovisor binary

* set default bump cosmovisor to yes

* set correct OS arch

* keep first install steps only in setup_cosmovisor

* set cosmovisor ENV vars

* remove sudo from export

* write to .profile using python

* Move filesx

* fix path to .profile

* log cosmovisor version when upgrade

* update .profile for current session

* exec source ~/.profile without stdout

* add execute permission

* Update installer.py

* add try/except

* get version anyway

* suppress err in bash

* add new line

* Delete outdated Cosmovisor check

* Create answers.txt

* Disable tmate

* use v1.2.0 instead

* try appending to .bashrc

* try with os.environ

* compare version and ask for bump

* rename function

* suppress error

* wrap std output in triple quotes

* add logs

* fix getting current version

* handle edge case

* add more info

* fix typo

* remove logs

* semantics

* add bump logic

* avoid fresh install during upgrade

* Debug only

* Update build.yml

* move new binary to installation directory

* try cosmovisor init

* extract to methods

* set ENV vars right after cosmovisor install

* edit upgrade steps

* add logs

* keep only interview logic at ask

* add fixes

* move info log

* minor fix

* stop and reload cosmovisor systemd during bump

* fix fresh install

* add logs

* more logs

* more log

* logs

* more logs

* add try except

* logs

* fix

* logs

* logs

* logs

* logs

* logs

* fix

* fix

* fix env var check

* remove unused function

* move getting cosmovisor download url to its own function

* check if .bashrc is writable or not

* fix syntax issues

* change ~ ownership to cheqd

* fix quotes syntax

* temporarily disable editing current user .bashrc

* remove is_file_writable

* write to file and read version for it

* remove using os

* add logs

* use tee

* remove debug logs

* write to bashrc python way

* add fix

* update installer.py

* Check default shell

* extract download and unzip to its own method

* reuse download_and_unzip

* add logs

* revert changes

* fix wrap in directory issue for versions lower than 1.0.1

* Update build.yml

* First we should check all existing different OS release,
then we should report about failure

* Add cosmovisor path to default PATH

* Remove previous commit code

* Reverse code

* Change runner from ubuntu-latest to ubuntu-20.04

* Fix linter mistakes

* Reset to version in develop

* Reset more correctly to develop branch

* Fix merge errors

* Delete Dockerfile approach

* Move installer test to test pipeline

* Rename to install from scratch

* Create upgrade-existing.txt

* Add upgrade path test

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Alexander Kolesov <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Filip Djokic <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>

* Remove github token

* Fix shields

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Alexander Kolesov <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Filip Djokic <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Toktar pushed a commit to canow-co/cheqd-node that referenced this pull request Dec 28, 2022
* Update legacy version in test pipeline

* Update comment in app.gox

* Provide github token

* Remove strip components

* ci: Execute interactive installer test [DEV-1944] (cheqd#460)

* remove configureCmd

* remove post_install method from installer.py

* remove add-observer.sh from upgrade/cosmovisor

* remove add-observer.sh from interactive-install

* remove post_install method usage

* keep post_install method empty

* Update config.toml and app.toml defaults

* Bump alpine image version to latest

* Update default persistent flags

* Set --gas flag correctly

* Delete legacy interactive test folder

* Add installer test to workflow

* Update package-lock.json

* Fix workflow syntax error in interactive-installer job

* add questionary to bump cosmovisor

* move bump logic to setup_cosmovisor

* Check for success

* Change existing install check

* Update existing installation check

* Update installer check

* Fix linter issue

* Update test.yml

* Fix linter error

* Update test.yml

* Debugging installer flow

* Update build.yml

* Set up tmate on failure

* Try Andrew's technique

* Change home path

* Fix home path

* Update installer.py

* auto detect os arch for cosmovisor binary

* set default bump cosmovisor to yes

* set correct OS arch

* keep first install steps only in setup_cosmovisor

* set cosmovisor ENV vars

* remove sudo from export

* write to .profile using python

* Move filesx

* fix path to .profile

* log cosmovisor version when upgrade

* update .profile for current session

* exec source ~/.profile without stdout

* add execute permission

* Update installer.py

* add try/except

* get version anyway

* suppress err in bash

* add new line

* Delete outdated Cosmovisor check

* Create answers.txt

* Disable tmate

* use v1.2.0 instead

* try appending to .bashrc

* try with os.environ

* compare version and ask for bump

* rename function

* suppress error

* wrap std output in triple quotes

* add logs

* fix getting current version

* handle edge case

* add more info

* fix typo

* remove logs

* semantics

* add bump logic

* avoid fresh install during upgrade

* Debug only

* Update build.yml

* move new binary to installation directory

* try cosmovisor init

* extract to methods

* set ENV vars right after cosmovisor install

* edit upgrade steps

* add logs

* keep only interview logic at ask

* add fixes

* move info log

* minor fix

* stop and reload cosmovisor systemd during bump

* fix fresh install

* add logs

* more logs

* more log

* logs

* more logs

* add try except

* logs

* fix

* logs

* logs

* logs

* logs

* logs

* fix

* fix

* fix env var check

* remove unused function

* move getting cosmovisor download url to its own function

* check if .bashrc is writable or not

* fix syntax issues

* change ~ ownership to cheqd

* fix quotes syntax

* temporarily disable editing current user .bashrc

* remove is_file_writable

* write to file and read version for it

* remove using os

* add logs

* use tee

* remove debug logs

* write to bashrc python way

* add fix

* update installer.py

* Check default shell

* extract download and unzip to its own method

* reuse download_and_unzip

* add logs

* revert changes

* fix wrap in directory issue for versions lower than 1.0.1

* Update build.yml

* First we should check all existing different OS release,
then we should report about failure

* Add cosmovisor path to default PATH

* Remove previous commit code

* Reverse code

* Change runner from ubuntu-latest to ubuntu-20.04

* Fix linter mistakes

* Reset to version in develop

* Reset more correctly to develop branch

* Fix merge errors

* Delete Dockerfile approach

* Move installer test to test pipeline

* Rename to install from scratch

* Create upgrade-existing.txt

* Add upgrade path test

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Alexander Kolesov <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Filip Djokic <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>

* Remove github token

* Fix shields

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Alexander Kolesov <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Filip Djokic <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants