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

Add devel image #165

Merged
merged 41 commits into from
Nov 8, 2023
Merged

Add devel image #165

merged 41 commits into from
Nov 8, 2023

Conversation

dgrassellyb
Copy link
Collaborator

@dgrassellyb dgrassellyb commented Nov 6, 2023

Closes #155 #154 #146 #31 (duplicate of 154..)

(also some updates related to #159 : checking if branch exists - but still ongoing discussions / potential updates for this issue..)

@dgrassellyb dgrassellyb requested a review from cicdguy as a code owner November 6, 2023 16:32
@@ -365,13 +365,18 @@ jobs:
id: branch
run: |
repo_name=$(basename "${{ github.repository }}")
echo "source-branch=${{ env.source-branch }}_${repo_name}@devel" >> $GITHUB_OUTPUT
source_br="${{ env.source-branch }}_${repo_name}@devel"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cicdguy : since this PR includes several changes I just add some comments ! here I added this change for pharmaverseadam datasets creation (since we push updates to a new branch, I just make a check before to see if the branch exists - if not we do not trigger the "commit and push changes" step (then we avoid error cases that we often have since pharmaverseadam maintainers might sometimes forget to merge some pending PRs..)
I also thought creating unique branch but would be super messy I guess

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good call.

BTW you do not need the @devel suffix anymore for the branch names since everything now uses main as the default branch

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yes indeed you're right :) just from some old runs I guess I just forgot to delete it 🙈

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(done)

@@ -94,5 +94,41 @@ jobs:
repo-user: ${{ github.actor }} # pharmaverse-bot
repo-token: "${{ secrets.GITHUB_TOKEN }}" # ${{ secrets.PHARMAVERSE_BOT }}

deploy-image-devel:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add step to deploy devel image

- name: Check Version
id: check_version
run: |
maintenance_version="F"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here this is a step to check if version has this pattern x.y.x.m with m >= 9000 - if this is the case then on next step we are doing this : Sys.setenv("R_CHECK_CRAN_INCOMING_SKIP_LARGE_VERSION" = TRUE) to avoid having notes on rcmdchecks

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd recommend just setting this as a top-level environment var instead of a session-specific var.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah sure? (because I see this more like temp setup to just enable checks in case of dev version) - but np to change this !

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, never mind. Your implementation should work. Keep it as-is.

Copy link
Collaborator

@cicdguy cicdguy left a comment

Choose a reason for hiding this comment

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

LGTM. Nice work!

@dgrassellyb
Copy link
Collaborator Author

LGTM. Nice work!

oh actually.. I just forgot to set up the cronjob for docker devel, let me add this little change ! (feel free to disapprove 😂 )

@dgrassellyb
Copy link
Collaborator Author

@cicdguy I am afraid .. I became a bot ..
Screenshot 2023-11-08 at 16 51 52

@cicdguy
Copy link
Collaborator

cicdguy commented Nov 8, 2023

Deep inside, we're all bots @dgrassellyb

@dgrassellyb dgrassellyb merged commit 19bfb1d into main Nov 8, 2023
6 checks passed
@dgrassellyb dgrassellyb deleted the add_devel_image branch November 8, 2023 15:59
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.

Add vbump workflow
3 participants