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

Use httphelper and cache response even when it is empty #12437

Closed
wants to merge 2 commits into from

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Nov 26, 2014

Fixes #12164


// Cache the result
\OC_Appconfig::setValue('core', 'lastupdateResult', json_encode($data));

\OC_Appconfig::setValue('core', 'lastupdateResult', json_encode($tmp));
Copy link
Member

Choose a reason for hiding this comment

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

sure about this? previously the json response was stored

$tmp['url'] = $data->url;
$tmp['web'] = $data->web;
} else {
$data = array();
Copy link
Member

Choose a reason for hiding this comment

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

change in behavior: in the previous implementation the empty array was simply returned but not stored

Copy link
Member Author

Choose a reason for hiding this comment

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

@DeepDiver1975 and this behavior introduces #12164

Copy link
Member

Choose a reason for hiding this comment

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

I see - thx for the explanation

@DeepDiver1975
Copy link
Member

and please squash the commits - thx

@VicDeo
Copy link
Member Author

VicDeo commented Nov 26, 2014

@DeepDiver1975 yes, I already fixed that locally, writing new tests right now

@ghost
Copy link

ghost commented Nov 26, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/3298/

Build result: FAILURE

[...truncated 18 lines...] > git rev-parse origin/pr/12437/merge^{commit} # timeout=10Checking out Revision a030bae15a820c42b7f1df7caa1b8eb5fa386a40 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f a030bae15a820c42b7f1df7caa1b8eb5fa386a40 > git rev-list e6ef51c8d1fd29d898fb5cdce2ded30237996c33 # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveCleaning workspace > git rev-parse --verify HEAD # timeout=10Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 > git submodule foreach --recursive git reset --hard # timeout=10 > git submodule foreach --recursive git clean -fdx # timeout=10Triggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 3 second
💣 Test FAILed. 💣

@MorrisJobke
Copy link
Contributor

@DeepDiver1975 The git clone error on jenkins is back :(

@VicDeo
Copy link
Member Author

VicDeo commented Nov 26, 2014

@owncloud-bot Do you need more RAM or HDD? 🍨

@LukasReschke
Copy link
Member

@VicDeo Unfortunately not that easy to solve. Bug in the plugin… It's enough horse power behind it :-(

@DeepDiver1975
Copy link
Member

@VicDeo unit tests are failing:

https://ci.owncloud.org//job/pull-request-analyser-ng-simple/3359/label=vm-slave-02/testReport/junit/%28root%29/OC_UpdaterTest/testCheck/

Stacktrace

OC\UpdaterTest::testCheck
Undefined variable: httpHelper

/var/jenkins/workspace/pull-request-analyser-ng-simple/label/vm-slave-02/tests/lib/updater.php:36

@ghost
Copy link

ghost commented Nov 27, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/3399/

Build result: FAILURE

[...truncated 18 lines...] > git rev-parse origin/pr/12437/merge^{commit} # timeout=10Checking out Revision 23f132d1bf3dee88e92779116e3fe0841b0c5670 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 23f132d1bf3dee88e92779116e3fe0841b0c5670 > git rev-list 6bb837a7468e75147925f97d75b17e9a630c87d3 # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveCleaning workspace > git rev-parse --verify HEAD # timeout=10Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 > git submodule foreach --recursive git reset --hard # timeout=10 > git submodule foreach --recursive git clean -fdx # timeout=10Triggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 2 second
💣 Test FAILed. 💣

@scrutinizer-notifier
Copy link

The inspection completed: 1 new issues, 1 updated code elements

@VicDeo
Copy link
Member Author

VicDeo commented Dec 6, 2014

will create a new branch to make Jenkins happy

@VicDeo VicDeo closed this Dec 6, 2014
@VicDeo VicDeo deleted the cache-empty-response branch December 6, 2014 17:13
@lock lock bot locked as resolved and limited conversation to collaborators Aug 15, 2019
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.

Update notification won't disappear (7.0.2->7.0.3)
6 participants