-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
|
||
// Cache the result | ||
\OC_Appconfig::setValue('core', 'lastupdateResult', json_encode($data)); | ||
|
||
\OC_Appconfig::setValue('core', 'lastupdateResult', json_encode($tmp)); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
and please squash the commits - thx |
bdebbd3
to
b64fafc
Compare
@DeepDiver1975 yes, I already fixed that locally, writing new tests right now |
💣 Test FAILed. 💣 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. 💣 |
@DeepDiver1975 The git clone error on jenkins is back :( |
@owncloud-bot Do you need more RAM or HDD? 🍨 |
@VicDeo Unfortunately not that easy to solve. Bug in the plugin… It's enough horse power behind it :-( |
@VicDeo unit tests are failing:
|
7b8eb72
to
ecffe02
Compare
💣 Test FAILed. 💣 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. 💣 |
The inspection completed: 1 new issues, 1 updated code elements |
will create a new branch to make Jenkins happy |
Fixes #12164