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

build: improved CI and cleanup #254

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

berendsliedrecht
Copy link
Member

Signed-off-by: blu3beri [email protected]

@berendsliedrecht berendsliedrecht force-pushed the build/improve-ci branch 3 times, most recently from acd0970 to 7d9309f Compare March 13, 2023 20:27
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #254 (7c2e6cc) into main (2417237) will increase coverage by 0.1%.
The diff coverage is 0.0%.

Impacted Files Coverage Δ
crates/afj-rest/src/agent.rs 0.0% <0.0%> (ø)
crates/afj-rest/src/cloudagent/connection.rs 0.0% <0.0%> (ø)
...s/afj-rest/src/cloudagent/credential_definition.rs 0.0% <0.0%> (ø)
crates/afj-rest/src/cloudagent/schema.rs 0.0% <0.0%> (ø)
crates/afj-rest/src/lib.rs 100.0% <ø> (ø)
crates/agent/src/error.rs 0.0% <0.0%> (ø)
crates/agent/src/lib.rs 100.0% <ø> (ø)
crates/automations/src/lib.rs 100.0% <ø> (ø)
crates/cli/src/error.rs 0.0% <0.0%> (ø)
crates/cli/src/help_strings.rs 0.0% <0.0%> (ø)
... and 8 more

... and 12 files with indirect coverage changes

uses: Swatinem/rust-cache@v2
with:
shared-key: deps
cache-on-failure: true
Copy link
Contributor

Choose a reason for hiding this comment

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

why cahce the failed resources?

Copy link
Member Author

Choose a reason for hiding this comment

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

Mainly taken this from a rust CI under Hyperlegder, but if we fetch 80% of deps and fail we still whould like to cache 80% of the deps. I actually will check later on if caching is setup properly inside the CI though.

uses: Swatinem/rust-cache@v2
with:
shared-key: deps
cache-on-failure: true
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Member Author

Choose a reason for hiding this comment

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

Same as above.

uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting that this doesn't fail w/o this flag provided

Copy link
Member Author

Choose a reason for hiding this comment

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

Uploading coverage can fail if their site or anything is down which might make it annoying. I would like to be strict here and only pass if everything works. Not opposed to removing it though.

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I see your reasoning. I meant more as in I would've thought initially that if error occurs it fail w/o having to explicitly set this

@@ -29,6 +29,6 @@ pub async fn parse_basic_message_args(
};
agent.send_message(send_options).await.map(|_| {
loader.stop();
log!("Successfully sent message")
log!("Successfully sent message");
Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense

@berendsliedrecht berendsliedrecht merged commit 49d6869 into animo:main Mar 31, 2023
@berendsliedrecht berendsliedrecht deleted the build/improve-ci branch March 31, 2023 08:50
This pull request was closed.
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.

2 participants