Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

(#1299) Add regex filter to include only build tags in the deployment script #1300

Merged

Conversation

rtuck99
Copy link
Contributor

@rtuck99 rtuck99 commented Apr 9, 2024

Fixes #1299

Link to dodal PR (if required): #N/A
(remember to update setup.cfg with the dodal commit tag if you need it for tests to pass!)

To test:

  1. deploying a release from dev workspace as per the wiki should now work even if you have other tags in your git repository

@rtuck99 rtuck99 requested review from olliesilvester and d-perl April 9, 2024 13:59
Copy link
Collaborator

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Thanks, suggested a slight improvement but not too bothered so take it or leave it.

@@ -8,6 +9,8 @@

recognised_beamlines = ["dev", "i03", "i04"]

VERSION_PATTERN = re.compile(r"^v?(\d+)\.(\d+)\.(\d+)$")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could: A more comprehensive pattern is in packaging.version.VERSION_PATTERN, we could use that instead so we don't have to maintain our own?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@rtuck99 rtuck99 merged commit 143369d into main Apr 11, 2024
6 checks passed
@rtuck99 rtuck99 deleted the 1299_deployment_script_should_filter_tags_that_relate_to_releases branch April 11, 2024 13:48
olliesilvester pushed a commit to olliesilvester/mx-bluesky that referenced this pull request Aug 23, 2024
…Source/1299_deployment_script_should_filter_tags_that_relate_to_releases

(DiamondLightSource/hyperion#1299) Add regex filter to include only build tags in the deployment script
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deployment script should filter out only tags which correspond to actual releases
2 participants