Skip to content

Conversation

@LilithCole
Copy link
Contributor

Creates a new upgrade script which schedules a task to copy any bluesky files from their new location to both "export only" and the archive.

Ticket

Bluesky Ticket234

@Tom-Willemsen
Copy link
Member

I feel this would be better-placed in the deployment script rather than the upgrade script - otherwise it will never get run on new ibex deploys.

@LilithCole
Copy link
Contributor Author

LilithCole commented Oct 29, 2025

I was under the impression that for new instruments it ran through all of them

def get_version_number(self) -> str | None:
"""Find the current version number of the repository. If there is no version number the
repository is considered unversioned and the lowest version is written to the repository
Returns: the version number
"""
try:
assert self._file_access is not None
for line in self._file_access.open_file(VERSION_FILENAME):
return line.strip()
except IOError:
assert self._file_access is not None
initial_version_number = self._upgrade_steps[0][0]
self._file_access.write_version_number(initial_version_number, VERSION_FILENAME)
return initial_version_number
which is why I put it here

If we're doing something to bypass that then honestly I'm a little relieved, and I'll chuck it in the deploy script

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