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

Fix the app deployments #41

Merged
merged 124 commits into from
Oct 11, 2023
Merged

Fix the app deployments #41

merged 124 commits into from
Oct 11, 2023

Conversation

vedhav
Copy link
Contributor

@vedhav vedhav commented Aug 1, 2023

Changes made

  1. Removes renv from all the nine apps
  2. Adds front-end tests for these seven apps (all except early-dev and python):
    RNA-seq, basic-teal, efficacy, exploratory, longitudinal, patient-profile, safety
  3. Updates the deploy.yaml workflow:
    1. Runs the cypress tests when they are present in the app directory
    2. Deploy two versions of apps to RSConnect. NEST_<APPNAME>_main and NEST_<APPNAME>_release. The _main suffix apps install the teal packages from https://insightsengineering.r-universe.dev while the _release suffix apps install the teal packages from https://pharmaverse.r-universe.dev
  4. Updates to the _internal/utils/sourceme.R to install the packages from r-universe instead of renv.lock.
  5. Changes to the appropriate readme files.

m7pr and others added 25 commits July 18, 2023 19:36
Merge branch 'main' into 447_remove_formatters@main

# Conflicts:
#	DESCRIPTION
#	staged_dependencies.yaml
… deploy-apps@main

# Conflicts:
#	early-dev/app.R
@vedhav vedhav force-pushed the deploy-apps@main branch from 0e1cbf4 to acb8c40 Compare August 4, 2023 05:57
@vedhav vedhav requested a review from pawelru August 4, 2023 05:59
_internal/utils/sourceme.R Outdated Show resolved Hide resolved
@vedhav
Copy link
Contributor Author

vedhav commented Sep 1, 2023

Created two separate issues blocking this PR #67 and #68

@donyunardi
Copy link
Contributor

@pawelru @cicdguy

We have a scheduled workflow that deploys the teal.gallery from the main branch, which results in the demo app page pointing to the *_main suffix. The GIF featured on the Demo page utilizes material from the deploy-apps@main branch, as all updates related to the logo are located there.

The current strategy I observe is that every time we make a push to main, we perform a merge from main to this branch. I followed the same process when completing the nest logo update.

The main branch does not contain the updated workflow to publish the app to _stable and _dev. During my update, I manually ran the publish workflow from deploy-apps@main, but as expected, it was overwritten when the scheduled workflow was triggered.

Until this PR is merged, should we turn off the scheduled workflow so that Demo App can start pointing to "_stable" and "_main" suffix?

For awareness: @lcd2yyz

walkowif and others added 4 commits September 22, 2023 17:36
Signed-off-by: walkowif <[email protected]>
Signed-off-by: walkowif <[email protected]>
Signed-off-by: walkowif <[email protected]>
Closes #69 #68 and #67 

And remove unused assets from the demo apps as we've moved to a remote
logo path

The fix for the cypress tests to work (#67) was to move the JS
dependency lock files inside the `tests` directory instead of the
dedicated `js` directory as it was before.

The deployment failure issues (#68) were caused by a new dependency
added to some package in the `renv.lock` file and once we update the
renv.lock file with the new package dependency it started to work fine.
@cicdguy
Copy link
Contributor

cicdguy commented Sep 26, 2023

Until this PR is merged, should we turn off the scheduled workflow so that Demo App can start pointing to "_stable" and "_main" suffix?

Yeah I think that should be fine. We'll need to remove it from the workflow definition in the main branch. I can do that for you guys.

vedhav pushed a commit that referenced this pull request Sep 27, 2023
@pawelru
Copy link
Contributor

pawelru commented Oct 3, 2023

Hey @vedhav. Can you please tell what's the status of this PR? In your previous message you created new issues that blocks this PR but all of them are resolved now. Is there any other blockers?

@vedhav
Copy link
Contributor Author

vedhav commented Oct 3, 2023

The only thing wrong with the deployment is that the mcr package is archived from CRAN, making the longitudinal app deployment fail.
But, we can merge it regardless. WDYT?

@pawelru
Copy link
Contributor

pawelru commented Oct 3, 2023

Thanks. I'm ok with merging. Please have a chat with @donyunardi. I have seen somewhere that he reached out to the mcr package author. If there is a chance that it will be addressed soon then I am also ok with waiting a few days or so.

@donyunardi
Copy link
Contributor

I've been in contact with author and he's in the process of resubmitting the package.
Let's wait until next week.

@donyunardi
Copy link
Contributor

mcr package is back online.

image

We can merge this now?

@cicdguy
Copy link
Contributor

cicdguy commented Oct 11, 2023

Yes let's do it!

@donyunardi
Copy link
Contributor

I ran the workflow again:
https://github.com/insightsengineering/teal.gallery/actions/runs/6487483463

I will merge once all green.

@donyunardi
Copy link
Contributor

donyunardi commented Oct 11, 2023

The workflow failed because @vedhav changed the branch name on 878437e
It should be okay once we merge.
Merging.

@donyunardi donyunardi merged commit dd77baf into main Oct 11, 2023
@donyunardi donyunardi deleted the deploy-apps@main branch October 11, 2023 22:01
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.

7 participants