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

UMPD3 checker: Check external repositories when they are modified by a branch. #31

Merged
merged 16 commits into from
Nov 8, 2024

Conversation

AdamVoysey
Copy link
Contributor

Currently, UM dependencies are checked by the UMDP3 checker on the trunk.

However, in a branch, the branch diff is used rather than the source files themselves. (This means the script only checks things that are changed by a branch, not the entire source tree.)

This in turn means changes from the other dependencies are not checked until after they are on trunk in a linked ticket. (This is because the branch diff contains only the changes to the sources, not the code changes themselves - which exist in a different repository.)

This pull request modifies the script to ensure dependencies are checked with the branch, when the script identifies that either the rose-suite.conf file, or the HOST_SOURCE environment variables have been modified. In that case, it inspects the full source of the external repository, as it would do on trunk.

@jennyhickson jennyhickson requested review from a team, ericaneininger and james-bruten-mo and removed request for a team June 17, 2024 07:06
Copy link
Contributor

@james-bruten-mo james-bruten-mo left a comment

Choose a reason for hiding this comment

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

I've got nothing useful to add here, happy to approve

@AdamVoysey
Copy link
Contributor Author

Can I give this PR a bump?

Copy link
Contributor

@ericaneininger ericaneininger left a comment

Choose a reason for hiding this comment

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

A couple of typos in comments with changes suggested, otherwise all good. Thanks.

Copy link
Contributor

@ericaneininger ericaneininger left a comment

Choose a reason for hiding this comment

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

A couple of typos in comments with suggested change. Otherwise all good. Thanks.

Copy link
Contributor

@james-bruten-mo james-bruten-mo left a comment

Choose a reason for hiding this comment

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

Ericas comment changes are ok

@james-bruten-mo james-bruten-mo merged commit b4bf525 into MetOffice:main Nov 8, 2024
1 check passed
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