Re: [Wikitech-l] CI misses and slowdown today

2019-05-06 Thread Antoine Musso

On 06/05/2019 18:26, Antoine Musso wrote:

On 06/05/2019 17:51, Antoine Musso wrote:

Hello,

The CI might have missed some events from 9:26 UTC until 14:04 UTC. 
That is due to a configuration change that has not been worked as 
expected and caused some patches to be entirely ignored.


https://phabricator.wikimedia.org/T105474
https://phabricator.wikimedia.org/T222605

Some patches might thus be missing a CI report and would need to be 
tested again (either by voting Code-Review +1 or by commenting 
'recheck').



Unrelated is that since 14:30 a large amount of job have been 
triggered.   The sole way I have found to solve it is to hard restart 
Zuul but that would flush all its of its state.  I am investigating 
and will come up with an enhancement later this week.


Hello,

The queue has been drained and CI behave properly now. An incident 
report will follow later on.


Hello,

There were two different issues but both causing similar effect to our 
user. Hence there is a single incident report:


https://wikitech.wikimedia.org/wiki/Incident_documentation/20190506-zuul

cheers,

--
Antoine "hashar" Musso


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] CI misses and slowdown today

2019-05-06 Thread Antoine Musso

On 06/05/2019 17:51, Antoine Musso wrote:

Hello,

The CI might have missed some events from 9:26 UTC until 14:04 UTC. That 
is due to a configuration change that has not been worked as expected 
and caused some patches to be entirely ignored.


https://phabricator.wikimedia.org/T105474
https://phabricator.wikimedia.org/T222605

Some patches might thus be missing a CI report and would need to be 
tested again (either by voting Code-Review +1 or by commenting 'recheck').



Unrelated is that since 14:30 a large amount of job have been triggered. 
  The sole way I have found to solve it is to hard restart Zuul but that 
would flush all its of its state.  I am investigating and will come up 
with an enhancement later this week.


Hello,

The queue has been drained and CI behave properly now. An incident 
report will follow later on.


--
Antoine Musso



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Issues with Cross-Origin Resource Sharing (CORS) JQuery Request

2019-05-06 Thread David Barratt
Somewhat related: https://phabricator.wikimedia.org/T210790

On Mon, May 6, 2019 at 9:05 AM Brad Jorsch (Anomie) 
wrote:

> On Mon, May 6, 2019 at 7:14 AM Egbe Eugene  wrote:
>
> > After looking at [1]Manual:CORS and trying to perform a request with
> JQuery
> > from an external application, I still get the error message saying
> "Request
> > from origin has been blocked by CORS policy: No
> > 'Access-Control-Allow-Origin' header is present on the requested
> resource.
> >
> > This is from a simple GET request to get imageinfo from Commons.
> >
>
> Without seeing the actual code you tried, I can only guess.
>
> If you set the `origin` parameter to match the Origin header a browser
> sends from your external site, and your external site is not listed in
> $wgCrossSiteAJAXdomains,[1][2] the attempt to use CORS will be rejected. If
> you inspect the response received, you should see a header
> "MediaWiki-CORS-Rejection: Origin mismatch".
>
> If you didn't set the `origin` parameter to so match, but just copied the
> example at Manual:CORS, you should have received an HTTP 403 with a message
> "'origin' parameter does not match Origin header".
>
> If you set the `origin` parameter to "*" (that's the single character
> U+002A) and set withCredentials = false in jQuery's xhrFields, it should
> work from any remote site. But since cookies are neither being sent nor
> used, the response will be served to you as an IP user. The code for that
> could look something like this:
>
> $.ajax( {
> url: 'https://en.wikipedia.org/w/api.php',
> data: {
> action: 'query',
> meta: 'userinfo',
> format: 'json',
> origin: '*'
> },
> xhrFields: {
> withCredentials: false
> },
> dataType: 'json'
> } ).done( function ( data ) {
> console.log( 'Foreign user ' + data.query.userinfo.name + ' (ID ' +
> data
> .query.userinfo.id + ')' );
> } );
>
> It looks like https://www.mediawiki.org/wiki/Manual:CORS could use
> updating
> to include the origin=* option, and perhaps to make it clearer that
> logged-in accesses only work from whitelisted sites.
>
> [1]: Docs: https://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains
> [2]: Config:
>
> https://gerrit.wikimedia.org/r/plugins/gitiles/operations/mediawiki-config/+/6cdae859db1611ffba7f6507faf8c54c6d38d217/wmf-config/CommonSettings.php#631
>
> --
> Brad Jorsch (Anomie)
> Senior Software Engineer
> Wikimedia Foundation
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] CI misses and slowdown today

2019-05-06 Thread Antoine Musso

Hello,

The CI might have missed some events from 9:26 UTC until 14:04 UTC. That 
is due to a configuration change that has not been worked as expected 
and caused some patches to be entirely ignored.


https://phabricator.wikimedia.org/T105474
https://phabricator.wikimedia.org/T222605

Some patches might thus be missing a CI report and would need to be 
tested again (either by voting Code-Review +1 or by commenting 'recheck').



Unrelated is that since 14:30 a large amount of job have been triggered. 
 The sole way I have found to solve it is to hard restart Zuul but that 
would flush all its of its state.  I am investigating and will come up 
with an enhancement later this week.



--
Antoine "hashar" Musso


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] New policy: Wikimedia Engineering Architecture Principles

2019-05-06 Thread Daniel Kinzler
Hi all!

Today, TechCom[1] has approved a new policy: the Wikimedia Engineering
Architecture Principles [2]. We have been discussing the Architecture Principles
for about a year, by email, on mediawiki.org, at the hackathon, at the Technical
Conference, and on phabricator. I'm very happy that after a final round through
the RFC process[3] and three weeks of Last Call, we could now approve them as
policy.

The architecture principles guide all Wikimedia engineering endeavors. They are
derived from the Wikimedia movement's strategic direction and the Wikimedia
Foundation's product strategy as well as established best practices of the
software industry. They are informed by past experience as well as present needs
and constraints, and are expected to evolve when these needs and constraints
change.

The architecture principles are intended to guide engineering decisions on all
levels, from detailed core review to high level RFCs. People with merge rights
on software in production on WMF servers, as well as people responsible for
technical decision making and planning for such systems, are expected to know
and apply these principles.

If you haven't read them yet, please do so now!

Regards,
Daniel

[1] https://www.mediawiki.org/wiki/Wikimedia_Technical_Committee
[2] https://www.mediawiki.org/wiki/Wikimedia_Engineering_Architecture_Principles
[3] https://phabricator.wikimedia.org/T220657

-- 
Daniel Kinzler
Principal Software Engineer, Core Platform
Wikimedia Foundation

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Issues with Cross-Origin Resource Sharing (CORS) JQuery Request

2019-05-06 Thread Brad Jorsch (Anomie)
On Mon, May 6, 2019 at 7:14 AM Egbe Eugene  wrote:

> After looking at [1]Manual:CORS and trying to perform a request with JQuery
> from an external application, I still get the error message saying "Request
> from origin has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
>
> This is from a simple GET request to get imageinfo from Commons.
>

Without seeing the actual code you tried, I can only guess.

If you set the `origin` parameter to match the Origin header a browser
sends from your external site, and your external site is not listed in
$wgCrossSiteAJAXdomains,[1][2] the attempt to use CORS will be rejected. If
you inspect the response received, you should see a header
"MediaWiki-CORS-Rejection: Origin mismatch".

If you didn't set the `origin` parameter to so match, but just copied the
example at Manual:CORS, you should have received an HTTP 403 with a message
"'origin' parameter does not match Origin header".

If you set the `origin` parameter to "*" (that's the single character
U+002A) and set withCredentials = false in jQuery's xhrFields, it should
work from any remote site. But since cookies are neither being sent nor
used, the response will be served to you as an IP user. The code for that
could look something like this:

$.ajax( {
url: 'https://en.wikipedia.org/w/api.php',
data: {
action: 'query',
meta: 'userinfo',
format: 'json',
origin: '*'
},
xhrFields: {
withCredentials: false
},
dataType: 'json'
} ).done( function ( data ) {
console.log( 'Foreign user ' + data.query.userinfo.name + ' (ID ' + data
.query.userinfo.id + ')' );
} );

It looks like https://www.mediawiki.org/wiki/Manual:CORS could use updating
to include the origin=* option, and perhaps to make it clearer that
logged-in accesses only work from whitelisted sites.

[1]: Docs: https://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains
[2]: Config:
https://gerrit.wikimedia.org/r/plugins/gitiles/operations/mediawiki-config/+/6cdae859db1611ffba7f6507faf8c54c6d38d217/wmf-config/CommonSettings.php#631

-- 
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Issues with Cross-Origin Resource Sharing (CORS) JQuery Request

2019-05-06 Thread Egbe Eugene
Hello All,

After looking at [1]Manual:CORS and trying to perform a request with JQuery
from an external application, I still get the error message saying "Request
from origin has been blocked by CORS policy: No
'Access-Control-Allow-Origin' header is present on the requested resource.

This is from a simple GET request to get imageinfo from Commons.

Please any hints?
Eugene233

[1] https://www.mediawiki.org/wiki/Manual:CORS#Using_jQuery_methods
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] What's making you happy this week? (Week of 5 May 2019)

2019-05-06 Thread Pine W
I am trying to restart the "What's making you happy this week?" threads.


I am grateful for the volunteers who are facilitating significant portions
of the selection process

for two WMF Board seats.

Also, I was happy to see a new issue of *The Signpost*. In addition to the
many interesting pieces of information in this issue, I appreciated the
Wikipedia humor of renaming this visual depiction to *Simplified Guide to
Categories*
.


Preparations for Wikimania 2019 sound like they are going well. I am very
interested in the conference’s highlighting
 of the United Nations
Sustainable Development Goals.

Finally, I join with others in congratulating Wikimedia Korea for its promotion
to chapter

.

What's making you happy this week? You are welcome to comment in any
language.

Pine
( https://meta.wikimedia.org/wiki/User:Pine )

P.S. Sometimes I try to translate "What's making you happy this week?" into
an additional language that is related to the content of the email, but
this week I had significant doubts regarding the the automated translations
that I received for Korean and Swedish, and I was unable to create a manual
translation that was likely to be accurate. I enjoy seeing diverse
languages on Wikimedia mailing lists. If I continue to start these threads
then I will continue to try to translate the titles. Anyone else who would
like to start one of these threads in a future week is welcome to take the
initiative!
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l