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

Add CI by way of github actions #38

Merged
merged 1 commit into from
May 11, 2022
Merged

Conversation

tcharding
Copy link
Member

Currently we are using appveyor to run CI. GitHub actions is used in
the rest of the repos in the rust-bitcoin organization. Using the same
tools reduces the maintenance burden.

Please review carefully, I'm not a github actions expert by any means,
this patch is gleaned from other repos in the org.

@RCasatta
Copy link
Contributor

I see in your repo https://github.com/tcharding/rust-bitcoinconsensus/actions/ there is a "Startup failure", could you fix to have a successful launch?

@tcharding
Copy link
Member Author

Thanks for looking at this @RCasatta, I got a subset of the actions to run. I'm do not understand why some repos in our stack test somethings and others don't so I just deleted the ones that I couldn't get to run. Of note, this PR contains Cross test, I'm a little hesitant to leave it in because it implies that someone thought about it and deemed this specific test needed above others when in fact its just a test that happens to pass. Should I remove it?

@RCasatta
Copy link
Contributor

The Cross test is testing a big-endian architecture, I think it's valuable to have and it precedently spotted endianness bugs.

I think also embedded and 32-bit could be nice to have but could be added later I think.

ACK 1b83c50

@tcharding
Copy link
Member Author

tcharding commented Jan 19, 2022

I think also embedded and 32-bit could be nice to have but could be added later I think.

Would it be useful to unify CI pipelines for our whole stack (everything up to rust-bitcoin, perhaps rust-miniscript even)? By 'unify' I mean make all the workflows as similar as possible, testing the same things.

@tcharding
Copy link
Member Author

tcharding commented Jan 20, 2022

I had a bit more of a go at this. Wrote an embedded test, but the C++ code in submodule fails to build. Reverting to draft until I work that out. Attempted to add 32 bit test back in too, no dice.

@tcharding tcharding closed this Jan 20, 2022
@tcharding
Copy link
Member Author

Woops, wrong button.

@tcharding tcharding reopened this Jan 20, 2022
@tcharding tcharding marked this pull request as draft January 20, 2022 02:45
@tcharding
Copy link
Member Author

I got the 32 bit test to pass but I'm stumped on the embedded build failure?

https://github.com/tcharding/rust-bitcoinconsensus/runs/4916913870?check_suite_focus=true

@tcharding
Copy link
Member Author

Taking this off draft, we can add the embedded test at a later stage.

@tcharding tcharding marked this pull request as ready for review January 25, 2022 02:15
@RCasatta
Copy link
Contributor

It's not clear to me the error in the embedded build...

ACK 6314438

@tcharding
Copy link
Member Author

It's not clear to me the error in the embedded build...

Phew! Glad its not just me :)

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

utACK 6314438. Thanks for this, any special reason not to include rust nightly? I believe we do those across rust-bitcoin repos

@sanket1729
Copy link
Member

I plan to use rust-bitcoin-consensus soon to cross-test things easily. It is heavy work in rust-miniscript currently to draft transactions to send to the bitcoin core node to get verification.

@tcharding
Copy link
Member Author

any special reason not to include rust nightly?

None at all, I just missed it. Will add, thanks.

Currently we are using `appveyor` to run CI. GitHub actions is used in
the rest of the repos in the `rust-bitcoin` organization. Using the same
tools reduces the maintenance burden.

Add CI by way of github actions, includes:

- cargo test
- carg doc
- cargo test, 32 bit version
- cargo test, big endian target
@tcharding
Copy link
Member Author

Merging this with the current stale acks, the force push only added nightly toolchain to the Tests CI job.

@tcharding tcharding merged commit 255ecf4 into rust-bitcoin:master May 11, 2022
@tcharding tcharding deleted the ci branch May 15, 2022 22:35
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.

None yet

3 participants