← Back to Pull requests

update to ownCloud 9.1.1 (with intermediate upgrades) #894

Closed
unknown closed this pull request without merging on Oct 18, 2016 10:04 UTC
View on GitHub
unknown unknown commented on Jul 27, 2016 17:22 UTC
Author

This PR upgrades owncloud to 9.1.0.

When upgrading owncloud you can't skip a minor version, this PR will upgrade from 8 to 9 to 9.1.

After going to 9 we need to migrate the existing contacts and calendars. This has to be done when you're at version 9, otherwise the option (and storage) is removed when upgrading to version 9.1. (Yes really, you will lose data)

When upgrading to 9, memcached doesn't seem to work. I have moved to the recommend (by Owncloud) APC method of caching. (memcached doesn't work well with file locking according to owcloud). This has to be done before the migrations and occ command line upgrades, otherwise these will fail.

We can't install the contacts/calendar app from github any more. These now need to be build, to do that you need npm, etc. Which we could install, but owncloud also supply packages. So I install directly from these packages.

I have tested this by upgrading many times from 8.2.3 to 9.1.0. I have tested:

  • [X] Files

  • [X] Calendars and contacts in the Web UI, Z-Push and DAV
  • The tests have been done on iOS with z-push and on macOS with Calendar and Contacts.

    Even though I tried to test this quite thoroughly, I think more people should test this on a system for which they have backups or do not care about.

    What I did to test this was copy /usr/local/lib/owncloud to ~/owncloud-lib and /home/user-data/owncloud. If you then run this script:

    #!/bin/bash
    rm -rf /home/user-data/owncloud/ && cp -r ~/owncloud /home/user-data/ && rm -rf /usr/local/lib/owncloud/ && cp -r ~/owncloud-lib/ /usr/local/lib/owncloud
    chmod 750 /usr/local/lib/owncloud/{apps,config}
    
    STORAGE_ROOT=/home/user-data
    ln -sf $STORAGE_ROOT/owncloud/config.php /usr/local/lib/owncloud/config/config.php
    chown -f -R www-data.www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud
    chown www-data.www-data $STORAGE_ROOT/owncloud/config.php
    

    And after the script rerun the setup/owncloud.sh from the master branch. This will restore everything to 8.2.3. Then checkout this branch and run the setup.

    Diff: 254 lines (+190 / -64) across 3 files Reviewer: bronson Review duration: 119081m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 254 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #894"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%