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

#2 Add integration test #4

Merged
merged 26 commits into from
Sep 24, 2018

Conversation

AlexanderScherbatiy
Copy link

No description provided.

git clone https://github.com/singnet/platform-contracts.git
cd platform-contracts
npm install
npm install ganache-cli
Copy link
Member

Choose a reason for hiding this comment

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

Actually commands above doesn't build platform-contracts they just clone repository and install dependencies. To build contracts you should run: npm run-script compile and npm run-script package-npm.

cd $SINGNET_REPOS
git clone https://github.com/singnet/snet-cli.git
cd snet-cli
./scripts/blockchain install
Copy link
Member

@vsbogd vsbogd Sep 19, 2018

Choose a reason for hiding this comment

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

I think we need to copy contracts from token-contracts and platform-contracts instead.
npm install <folder> command can be used to do this.

# Install other
sudo apt-get -y install libudev-dev libusb-1.0-0-dev
- run:
name: Build platform-contracts
Copy link
Member

Choose a reason for hiding this comment

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

It is worth to add token-contracts as well.

cd $SINGNET_REPOS
git clone https://github.com/singnet/snet-daemon.git
cd snet-daemon
./scripts/install
Copy link
Member

Choose a reason for hiding this comment

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

Same thing regarding contracts as for snet-cli.

Copy link
Contributor

Choose a reason for hiding this comment

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

I update the circleci config to build projects using downloaded parents.

return err
}

time.Sleep(2 * time.Second)
Copy link
Member

Choose a reason for hiding this comment

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

Why it is needed? Usually you cannot rely on such delays.

Copy link
Contributor

Choose a reason for hiding this comment

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

Removing the delay requires adding some logging to the snet-daemon and example service that they are ready. I would prefer to make it as a separate fix.

Copy link
Member

Choose a reason for hiding this comment

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

Raised issue #5

utils.go Outdated
return cmd, nil
}

func check_with_timeout(f check_with_timeout_type) (bool, error) {
Copy link
Member

Choose a reason for hiding this comment

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

I would add timeout to the function parameters.

Copy link
Contributor

Choose a reason for hiding this comment

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

The timeout and tick arguments are added to the checkWithTimeout func.

utils.go Outdated
return err
}

func link_file(file_from string, file_to string) error {
Copy link
Member

Choose a reason for hiding this comment

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

May be make_symlink?

Copy link
Contributor

Choose a reason for hiding this comment

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

Update to use os.Symlink instead of running ln from a command line.

@vsbogd vsbogd merged commit 2988413 into singnet:master Sep 24, 2018
@stellarspot stellarspot deleted the feature/publish-service-test branch October 29, 2018 12:29
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.

3 participants