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: enable circleci for extension package #6

Merged
merged 2 commits into from
Nov 6, 2020
Merged

feat: enable circleci for extension package #6

merged 2 commits into from
Nov 6, 2020

Conversation

shiki-tak
Copy link
Contributor

@shiki-tak shiki-tak commented Oct 29, 2020

Closes: #2

Description

The purpose of this PR is to set up circle CI for newly added ext and contract, so I prepared implementation of minimum to see if the circle CI works properly.

  • Add the ext package
    • package to call a native link module
  • Set circleci for ext package
  • Add PULL_REQUEST_TEMPLATE.md
  • Add token-tester sample contract

Motivation and context

How has this been tested?

Checklist:

  • I followed the contributing guidelines.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@shiki-tak shiki-tak self-assigned this Oct 29, 2020
@shiki-tak shiki-tak changed the base branch from master to develop October 29, 2020 09:54
@shiki-tak shiki-tak removed the WIP label Oct 29, 2020
@loloicci
Copy link
Contributor

If there are some based files of the config of circleCI, contracts, ext, etc..., could you write the information on it?
It helps to get diff to review :)

@shiki-tak
Copy link
Contributor Author

If there are some based files of the config of circleCI, contracts, ext, etc..., could you write the information on it?
It helps to get diff to review :)

The original file does not exist, and I deleted unnecessary files from cosmwasm-template and prepared them as ext and contract.
I used package_std and contract_reflect as a reference for circleci settings.

_deps: &Extern<S, A, Q>,
_contract_id: String,
) -> StdResult<Binary> {
unimplemented!()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have a plan to implement? Is it able?

If not, can we develop a contract with no query?

Copy link
Contributor Author

@shiki-tak shiki-tak Nov 4, 2020

Choose a reason for hiding this comment

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

I will provide a complete token-tester including the query in issue #3 .

&schema_for!(LinkMsgWrapper<CollectionRoute, CollectionMsg>),
&out_dir,
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file needed? What is this file for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is for generating a json schema that will serve as a guide for the contract developer.
This file is used to generate a json file from the cargo schema.

@loloicci
Copy link
Contributor

loloicci commented Nov 2, 2020

I think token-tester needs a README to tell how to compile them. (at least, including the recommended version of rust-optimizer)

@shiki-tak
Copy link
Contributor Author

I think token-tester needs a README to tell how to compile them. (at least, including the recommended version of rust-optimizer)

Ok, I'll add the README in issue #3.

command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-package_std-rust:1.44.1-{{ checksum "Cargo.lock" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems to be nice if making the cache key different from package_std.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed!

command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-v2-contract_burner-rust:1.44.1-{{ checksum "Cargo.lock" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice making the key name related to the job name.
(contract_burner -> contract_token_tester)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed!

crate-type = ["cdylib", "rlib"]

[features]
default = ["cranelift"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to use cranelift as default?
(I think only the singlepass is fully implemented currently)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. fixed!

@loloicci loloicci self-requested a review November 6, 2020 01:57
@shiki-tak shiki-tak merged commit 0f00d6d into Finschia:develop Nov 6, 2020
loloicci pushed a commit that referenced this pull request Jan 26, 2021
* feat: enable circleci

* fix: apply review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup circleci in link-cosmwasm-bindings
3 participants