Skip to content

Continuous deployment Python script#80

Merged
bgruening merged 47 commits intousegalaxy-eu:devfrom
mira-miracoli:python-script
Jan 2, 2024
Merged

Continuous deployment Python script#80
bgruening merged 47 commits intousegalaxy-eu:devfrom
mira-miracoli:python-script

Conversation

@mira-miracoli
Copy link
Copy Markdown
Contributor

@mira-miracoli mira-miracoli commented Dec 14, 2023

Script that

  • builds the image with packer
  • converts the image with qemu-img convert
  • (optional) uploads the image to OpenStack
  • (optional) copies the image to sn06 static/vgcn directory

@domgz domgz linked an issue Dec 15, 2023 that may be closed by this pull request
6 tasks
@mira-miracoli mira-miracoli marked this pull request as ready for review December 15, 2023 14:59
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py Outdated
Copy link
Copy Markdown
Contributor

@domgz domgz left a comment

Choose a reason for hiding this comment

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

This is an extremely thorough review, but I wanted to invest the time given that this script is critical. We have seen the effect of neglected image builds numerous times (e.g. BRAKER3, probably cgroups, and many other examples from the past).

To illustrate the importance of the script, I want to draw an analogy between it and the technical revision of ambulances, if the screws on the wheels are loose, they fall away and you can't even send the doctor when somebody is dying (or you send him/her walking and other people die at the hospital meanwhile). That's exactly what is happening to us right now with numerous bugs.

Please look at the comments from a distance, do not get lost in them. Despite the fact that you see a comment every few lines, I am commenting on minor details or cases where the spec does not match what we agreed. Overall this is script is solving the problem.

Comment thread .gitignore Outdated
Comment thread ansible/internal.yml
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py Outdated
Comment thread build.py
Comment thread environment.yml
Comment thread build.py
mira-miracoli and others added 7 commits December 19, 2023 17:45
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
mira-miracoli and others added 16 commits December 19, 2023 18:24
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com>
@mira-miracoli
Copy link
Copy Markdown
Contributor Author

Thank you for the thorough review, I think I learned a lot :)

@domgz domgz changed the title Python script Continuous deployment Python script Dec 20, 2023
domgz and others added 2 commits December 20, 2023 16:29
Compute commit time in `assemble_timestamp` instead of build time as agreed in usegalaxy-eu#78.
Prevents "SyntaxError: f-string expression part cannot include a backslash".

```
In [1]: f"[{','.join('\"' + x + '\"' for x in self.provisioning)}]"
  Cell In[1], line 1
    f"[{','.join('\"' + x + '\"' for x in self.provisioning)}]"
                                                               ^
SyntaxError: f-string expression part cannot include a backslash
```
@domgz
Copy link
Copy Markdown
Contributor

domgz commented Dec 20, 2023

@mira-miracoli Consider this approved, I just want to run it before hitting approve.

A good reason to run it may be https://github.com/usegalaxy-eu/issues/issues/505 if it is caused by something that needs to be fixed in the images. I'll look into the issue and if the images need to be fixed, I'll build and upload them using this, then hit approve.

@domgz domgz mentioned this pull request Dec 20, 2023
6 tasks
@mira-miracoli
Copy link
Copy Markdown
Contributor Author

was it intentional that 8b363fa leaves the generic tag in the name?
I'm fine with that, I just wanted to note that because, I think in #78 the idea was to only mention !generic if it is missing
But I am fine with both ways

@mira-miracoli mira-miracoli mentioned this pull request Dec 21, 2023
@bgruening bgruening merged commit 6f78a5f into usegalaxy-eu:dev Jan 2, 2024
@bgruening
Copy link
Copy Markdown
Member

Thanks, everyone! And a happy new year!

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.

Release management for VGCN images

3 participants