Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Test packaged EOSIO Linux artifacts against standard dockers. #10429

Merged
merged 2 commits into from
Jun 16, 2021

Conversation

williamblevins
Copy link
Collaborator

Change Description

Updates for CICD to test packaged EOSIO Linux artifacts against standard dockers: *.deb and *.rpm files.

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@williamblevins williamblevins changed the base branch from master to release/2.0.x June 15, 2021 20:17
Copy link

@sandie06 sandie06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@williamblevins williamblevins marked this pull request as ready for review June 15, 2021 20:25
kj4ezj
kj4ezj previously approved these changes Jun 15, 2021
Copy link
Contributor

@kj4ezj kj4ezj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly just concerned with the first three comments.

@@ -0,0 +1,35 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add set -e here so this script fails on error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should. I'm going to add -u also. I did it for the test script, but I guess not the wrapper...

cat > $SCRIPT_NAME <<EOL
#!/bin/bash
set -eu

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use log-folding groups to hide everything from our customers except what they care about, which is just the installation and the nodeos --full-version. This makes what the pipeline is doing more obvious and reduces our support load.

echo '+++ :minidisc: Installing EOSIO'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. Should I put the the nodeos --full-version into a separate fold since its a basic test layer that nodeos runs after installed? We might put other stuff there eventually.

Copy link
Contributor

@kj4ezj kj4ezj Jun 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you. If you do, I would make both the installation and invocation expanded log groups (+++).

Copy link
Contributor

@kj4ezj kj4ezj Jun 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emoji are here.


SCRIPT_NAME='test-package.gen.sh'

cat > $SCRIPT_NAME <<EOL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wrap the opening delimiter with single-quotes...

cat > $SCRIPT_NAME <<'EOL'

...then it won't perform shell interpolation.

While your code is already working and it might suck to change it, I think it will prevent errors for anyone who has to edit it moving forward and forgets an escape sequence. Thoughts?

I, personally, prefer a recursive solution because then all the code has syntax highlighting and lives in the same file but I guess I never had time to make the same changes in eos as I did in eos-vm.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with changing it for readability. I avoid escaping when I can.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if we do it this way, vim stops highlighting the EOL block though... ;(

@@ -0,0 +1,35 @@
#!/bin/bash

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider another log folding group here to match the style of the other job steps.

echo '--- :evergreen_tree: Configuring Environment'

EOL

chmod +x $SCRIPT_NAME

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider another log folding group here to match the style of the other job steps.

echo '--- :docker: Selecting Container'

@kj4ezj kj4ezj dismissed their stale review June 15, 2021 22:14

Meant to click "Request Changes". Whatever, lol

@williamblevins williamblevins merged commit e0d3e2b into release/2.0.x Jun 16, 2021
@williamblevins williamblevins deleted the release_2.0.x_package_tests branch June 16, 2021 13:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants