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

Fix Greeter and run documentation tests in CI #773

Merged
merged 5 commits into from
Apr 21, 2021

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Apr 21, 2021

Greeter was not working in it's current stage.

Note that even though cargo test --doc --workspace improves our testing, it would still not have catched the Greeter error which this PR fixes.

I'll create follow-ups for ink-docs and the workshop, which are also missing use ink_prelude::format.

cmichi added 3 commits April 21, 2021 04:06
The contract build will fail otherwise due to
the usage of `std::string::String` because of
`std::format`.
@cmichi cmichi requested a review from Robbepop April 21, 2021 02:10
@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2021

Codecov Report

Merging #773 (afa1b12) into master (5961b44) will decrease coverage by 15.90%.
The diff coverage is n/a.

❗ Current head afa1b12 differs from pull request most recent head 1995960. Consider uploading reports for the commit 1995960 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           master     #773       +/-   ##
===========================================
- Coverage   83.39%   67.48%   -15.91%     
===========================================
  Files         163      163               
  Lines        7502     7502               
===========================================
- Hits         6256     5063     -1193     
- Misses       1246     2439     +1193     
Impacted Files Coverage Δ
crates/lang/macro/src/lib.rs 100.00% <ø> (ø)
crates/lang/codegen/src/traits.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/lang/ir/src/ir/contract.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/lang/codegen/src/generator/env.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/storage/src/traits/layout/impls.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/lang/codegen/src/generator/events.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/lang/codegen/src/generator/storage.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/lang/codegen/src/generator/contract.rs 0.00% <0.00%> (-100.00%) ⬇️
crates/lang/codegen/src/generator/trait_def.rs 0.00% <0.00%> (-100.00%) ⬇️
...ates/lang/codegen/src/generator/chain_extension.rs 0.00% <0.00%> (-100.00%) ⬇️
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5961b44...1995960. Read the comment docs.

The CI run already takes quite long and I don't think
it makes that much difference if we reduce the amount
of runs. The bugs we catched so far were always catched
with way less runs than even this new number.
.gitlab-ci.yml Outdated Show resolved Hide resolved
.gitlab-ci.yml Show resolved Hide resolved
crates/lang/macro/Cargo.toml Show resolved Hide resolved
@cmichi cmichi merged commit c2e43fc into master Apr 21, 2021
@cmichi cmichi deleted the cmichi-run-doctests-in-ci branch April 21, 2021 07:42
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