Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Move hosting to SSP #173

Merged
merged 13 commits into from
Feb 15, 2018
Merged

Move hosting to SSP #173

merged 13 commits into from
Feb 15, 2018

Conversation

sminnee
Copy link
Member

@sminnee sminnee commented Nov 17, 2017

This PR has the code changes needed to move addons.silverstripe.org to SSP. You can see it on our company network here: https://ssaddons-uat.sites.silverstripe.com

The most notable feature not working are the helpful robot score, due to #172.

Sam Minnee and others added 12 commits November 16, 2017 11:29
This will necessitate either a server upgrade or a new server, but is
done to allow us to add features to more recent versions of modules such
as queuedjobs
These implement the cronjobs that addons uses. They’re built this way
to ensure safe deployment to a multi-server environment.

NOTE: The ElasticSearch cron isn’t included yet, until that
feature is working on SSP.
Generally speaking, the addons that fail their download are legacy
entries that exist on packages but not github. Deleting them is as such
reasonable.

If the issue is temporary, then these records will be recreated on the
next execution.

Note that if the issue is permanent, these entries will be continually
deleted and recreated. It may be better to set a status flag instead,
but that will need to be passed into elasticsearch and applied to our
default view-list and search queries.
The jobs are taking more than an hour to run, so running them hourly
isn’t practical.
Temp may is space-restricted on SSP and so a hidden folder in there
runs out of disk. This sets up a new folder on the mounted EBS. Making
it a hidden pathname prevents web access.
@robbieaverill robbieaverill self-assigned this Feb 15, 2018
composer.json Outdated
},
{
"type": "vcs",
"url": "https://github.com/sminnee/silverstripe-queuedjobs.git"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a blocker we need to get merged into queuedjobs first?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point I'll have a look on hackday. This stuff may have already made its ways in.

@@ -227,6 +238,8 @@ private function updateVersion(Addon $addon, Version $package)
$version->License = $package->getLicense();
// $version->Support = $package->getSupport();

echo " - Processed version {$version->Version}\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a side note: I'd really love to see an output interface used instead of direct echos. Related silverstripe/silverstripe-framework#7509 and silverstripe/silverstripe-framework#6524

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree but I think that would be an API breakage, so I don't think it's part of this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Totally =)

@robbieaverill
Copy link
Contributor

Changes look good overall - we need to ensure any queuedjobs requirements are merged in (in a perfect world) before merging. Here are my concerns with the approach:

  • Lots of queued job records in the DB building up
  • That's it

composer.json Outdated
@@ -28,7 +24,7 @@
"symfony/finder": "^2.8",
"symfony/yaml": "^2.8",
"guzzlehttp/guzzle": "^6",
"symbiote/silverstripe-queuedjobs": "dev-queue-buildtask as 3.x-dev",
"symbiote/silverstripe-queuedjobs": "3.x-dev as 3.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

I've updated the branch alias on queuejobs so you can use 3.1.x-dev now without aliasing it

composer.json Outdated
@@ -28,7 +24,7 @@
"symfony/finder": "^2.8",
"symfony/yaml": "^2.8",
"guzzlehttp/guzzle": "^6",
"symbiote/silverstripe-queuedjobs": "dev-queue-buildtask as 3.x-dev",
"symbiote/silverstripe-queuedjobs": ">=3.1.0@dev",
Copy link
Member Author

Choose a reason for hiding this comment

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

How's this @robbieaverill ?

@sminnee
Copy link
Member Author

sminnee commented Feb 15, 2018

Lots of queued job records in the DB building up

Completed jobs should be garbage-collected, right? If not, we should fix that...

@robbieaverill
Copy link
Contributor

Merge on green

@robbieaverill robbieaverill merged commit 047b733 into master Feb 15, 2018
@robbieaverill robbieaverill deleted the v3-ssp branch February 15, 2018 21:09
@robbieaverill robbieaverill removed their assignment Aug 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants