Skip to content

AS-215 version in build artifact file name #249

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

Open
wants to merge 9 commits into
base: mttr-rebase-4.0
Choose a base branch
from

Conversation

bhiln
Copy link
Contributor

@bhiln bhiln commented Jan 19, 2023

Add AP version, latest mttr git tag in commit history, and git commit to .apj and .elf build artifact files.
image

@bhiln bhiln self-assigned this Jan 19, 2023
@bhiln
Copy link
Contributor Author

bhiln commented Jan 20, 2023

Check hash, this may be the wrong hash

MTTR_GIT_TAG=$(echo $(git tag -l "mttr-*" --sort=-committerdate | head -1) | tr - _)

# Get mttr git hash
MTTR_GIT_HASH=$(git rev-parse --short=7 HEAD)
Copy link
Contributor

Choose a reason for hiding this comment

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

When this gets run is very important. It must be run after the commit gets merged to the main for this to work. If you can run a test that shows the hash is correct we can leave this in. Otherwise it will cause way more confusion than its worth.

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 are right. I ensured that it worked well on my pc, but I'm not sure it was right from circleci. I'm looking into this.

Copy link
Contributor Author

@bhiln bhiln Jan 25, 2023

Choose a reason for hiding this comment

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

@robkarol Here's the latest push with correct hash in the files: https://github.com/matternet/ardupilot/actions/runs/4008770308
image
image

@robkarol
Copy link
Contributor

This change may not be needed depending on a few conversations I have later this week. Lets hold off on merging it for now, also pending the test I suggested in the review.

github actions already runs on push using the correct commit hash. This covers push, PR, and merges.
@bhiln bhiln requested a review from robkarol January 25, 2023 20:03
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