User talk:QChrisNonWMF
Add topicdevice_analytics
[edit]Hi @QChrisNonWMF generated-data-platform/aqs/device_analytics is just fine
- Thanks for confirming! --QChrisNonWMF (talk) 22:21, 10 November 2022 (UTC)
Done [1] --QChrisNonWMF (talk) 22:21, 10 November 2022 (UTC)
Code import of extensions/CIForms
[edit]@QChrisNonWMF With reference to the following
@Thomas-topway-it: By „mirror”, do you mean „One-time import of the code and then the development will continue on Gerrit” or do you mean „Development will stay on GitHub and changes there should automatically be picked up by Gerrit”? The former would work, but we (currently) cannot do the latter :-/ --QChrisNonWMF (talk) 07:10, 4 February 2021 (UTC)
hello Chris, sure I mean "One-time import of the code and then the development will continue on Gerrit", I have created that repository to just allow you to pick-up the code. So this is the fixed request for the New_repositories/Requests page, if possible replace with it those previously entered
|- | mediawiki/extensions/CIForms | Thomas | Merge review | Please import the repository https://github.com/thomas-topway-it/CIForms for the development on Gerrit and the download from ExtensionDistributor. This is the extension page Extension:CIForms and this is the help page Help:Extension:CIForms thank you! User:thomas-topway-it |
- @Thomas-topway-it: I've created the repo and imported the code from GitHub, but I fail to find your user in our LDAP (so I can grant your LDAP account access to the repo). Did you sign up yet for a developer account? If so, what's your username? Does logging into WMF's Gerrit work for you? --QChrisNonWMF (talk) 22:42, 5 February 2021 (UTC)
- @QChrisNonWMF: Hello Chris, thanks. I have now created an account on https://wikitech.wikimedia.org with the same username, thomas-topway-it
- @Thomas-topway-it: Great! I've added you as repo owner for mediawiki/extensions/CIForms. --QChrisNonWMF (talk) 10:51, 8 February 2021 (UTC)
Done --QChrisNonWMF (talk) 10:51, 8 February 2021 (UTC)
- @QChrisNonWMF: Hello Chris, thank you, I have uploaded a commit here
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CIForms/+/663043 but I'm not sure how to update consequently the repository here https://github.com/wikimedia/mediawiki-extensions-CIForms or here https://gerrit.wikimedia.org/g/mediawiki/extensions/CIForms perhaps that cannot be done directly and I need to add a reviewer ? In this case, can you suggest one ? thank you
purged repo mirror name
[edit]Hi Chris, I'm fine with using wikimedia/operations-software-purged for the mirror of the repo requested on https://www.mediawiki.org/wiki/Gerrit/New_repositories/Requests. Thanks. --Ema
Done Cool beans. Repo got created at operations/software/purged --QChrisNonWMF (talk) 09:35, 13 April 2020 (UTC)
Wiktionary Cognate Dashboard
[edit]Hi Chris, thank you for creating the Wiktionary Cognate Dashboard repo. However, we need it under analytics/wmde/WiktionaryCognateDashboard, not labs/tools/WiktionaryCognateDashboard. My apologies if I haven't been clear in respect to this, I work as a Data Scientist for WMDE and have many repositories under analytics/wmde/ already...
- Done Hi Goran, no worries. I've re-created the repo as analytics/wmde/WiktionaryCognateDashboard --QChrisNonWMF (talk) 22:19, 9 August 2018 (UTC)
Push right
[edit]Hi Chris, thanks for creating the repos at wikipedia/wikiwidgets/Formicarium and wikipedia/wikiwidgets/Vivarium. Today I tried to push some changes but found that I don't have push rights to the repo. You mentioned something about giving Submit privilege to myself, but I'm not sure if we're talking about the same thing or how can I do that. Can you help me out? Thanks! --Felipe (talk) 18:51, 23 June 2015 (UTC)
- Done Hi Felipe, the repos have been requested with “Merge review” in the “Preferred Model” column, and therefore direct Push permission has not been granted. To get Push permission right from the start, request repos with “Open push” as “Preferred Model”. I now switched both repos to “Open push”, and direct pushing should now work for them. --QChrisNonWMF (talk) 19:20, 23 June 2015 (UTC)
- Thanks, I've pushed the changes. --Felipe (talk) 03:32, 27 June 2015 (UTC)
Can you please add existing https://www.mediawiki.org/wiki/Extension:FileProtocolLinks to git
[edit]https://phabricator.wikimedia.org/T111361 --Planetenxin (talk) 14:37, 3 September 2015 (UTC)
- Done Thanks. Let's discuss in that phabricator task then. --QChrisNonWMF (talk) 08:26, 4 September 2015 (UTC)
Add you to gitblit
[edit]Hi I have added you to the https://phabricator.wikimedia.org/tag/gitblit/ project because gerrit and gitblit projects were split and as you are a member of gerrit project I thought that you can be added to gitblit. please remove your self if you doint want to be a member. Paladox2017 (talk) 21:11, 18 September 2015 (UTC)
- @Paladox2017: In so many discussions I've asked you nicely to not add me to random things. And I also told you in so many occasions that I prefer to handle myself where I get added. This is the last warning. If you'll again add me to random stuff, I'll escalate. --QChrisNonWMF (talk) 22:08, 18 September 2015 (UTC)
- Ok sorry I won't do it any more. What if I want to ask you something like @username woulden I have to add you to the task temporarily until you answer or want to remove your self. Would @username notify you without adding you to the task. 151.227.77.167 22:58, 18 September 2015 (UTC)
- What's more relevant to me is if you really want to ask me specifically :-)
- If you have a question around code that I wrote/maintain, and you want to ask me specifically, that's just fine. Ask me. Add me to the change. Send me a message. Send me an email. Ping me in IRC. That's all fine.
- But adding me to changes on projects that I never worked on or even looked at, is different. Please address such questions to people who are in charge of that code.
- Also when it comes to git/gerrit stuff. Most likely, you do not want to ask me specifically, but most of the time you want to ask Phabricator's
Gerrit
project. Other people on those project can chime in too. - Finally, when it comes to adding people to projects (see above), you do not want to do that at all without asking them beforehand ;-) --QChrisNonWMF (talk) 22:18, 20 September 2015 (UTC)
About deleting the Cards extension
[edit]Thanks for creating the Cards repo. Our plans seem to have changed and we'd like to keep the Cards extension for now. I'll let you know when to delete the newly created repo. Sorry the change-of-mind.
- Done Ok. Cool. Thanks for letting me know --QChrisNonWMF (talk) 11:26, 16 November 2015 (UTC)
- Hi again! I think it's safe to delete the Cards repo now as we're using mediawiki/extensions/Cards. Thanks. Bmansurov (WMF) (talk) 10:19, 7 December 2015 (UTC)
A cupcake for you!
[edit]Thanks for the salt repo, that was awesomely fast! ArielGlenn (talk) 15:31, 1 December 2015 (UTC) |
See task at https://phabricator.wikimedia.org/T121371 about gerrit
[edit]Hi please could you see task at https://phabricator.wikimedia.org/T121371 its about gerrit and also when creating a gerrit repo to also create a phabricator repo that mirrors off the gerrit repo and to also update the redirect script with the new repo. 81.140.246.37 01:10, 14 December 2015 (UTC)
- Done Hi, I seems AKlapper in the meantime triaged and closed the task. --QChrisNonWMF (talk) 12:53, 14 December 2015 (UTC)
Thanks!
[edit]Thanks for helping so many developers find a home for their code at Git/New_repositories/Requests. It is much appreciated -- by all! --Ori Livneh (talk) 05:26, 5 January 2016 (UTC)
- You tha best! Thanks Ori! :-) --QChrisNonWMF (talk) 15:47, 5 January 2016 (UTC)
- I thank you too, you have created many repos for me already, very fast and efficient! --Felipe (talk) 15:07, 16 January 2016 (UTC)
- Just want to add my thanks for creating a repo. I couldn't find the status update edit to thank for, so leaving one here instead :) – MPopov (WMF) (talk) 18:00, 16 April 2020 (UTC)
Name and username change at Gerrit
[edit]Hi Chris. I'm trying to unify my name and username throughout the internet, and Gerrit is one of the last services missing. My name there is "Luis Felipe Schenone" and my username is "lfs". Would it be too much trouble to change that to "Felipe Schenone" and "lfschenone"? Thanks a lot! --Felipe (talk) 15:06, 16 January 2016 (UTC)
- Yay; unification is a venerable goal!
- However, Gerrit is using wikitech's LDAP database for the accounts. So one would have to change your wikitech's LDAP account. I asked in #wikimedia-labs, and since LDAP renames are painful, I've been told that they'd prefer you to sign up afresh with your new username.
- Not ideal. I know :-(
- Would it nonetheless work for you, or do we need to find a better way? --QChrisNonWMF (talk) 16:29, 17 January 2016 (UTC)
- Well, I already have considerable history associated with my user "lfs", I'd rather keep it with the undesired username than start a new one. I found this relevant ticket, so I'll ask "demon" for the rename. Thanks again! --Felipe (talk) 18:19, 17 January 2016 (UTC)
Gerrit new repo
[edit]Hello Christian, i'm a new lab user trying to finalize the account configuration. The lab user is Youni Verciti, i paste on the gerrit user's settings the same SSH_public_Key. I was so lost that i post the request twice, but the repo. i request is for a tool "vocabulary-index" running in command-line for French Wikiversity. Then i saw that you where taking care of the list. Thanks a lot. --Youni Verciti (talk) 16:05, 12 February 2016 (UTC)
- Done Hi Youni, Sorry for the delay. I created the repo for you at labs/tools/vocabulary-index. If you run into issues, just let me know. --QChrisNonWMF (talk) 11:02, 14 February 2016 (UTC)
Gerrit new repo for Memento
[edit]Hello Chris, I appreciate the attempt at importing the code from https://github.com/mementoweb/mediawiki into Gerrit. I was able to remove the offending file from the history, but I can't seem to move the repository in myself. Some commits are attributed to email addresses belonging to committers from whom we accepted pull requests and gerrit is not allowing me to push because these addresses are not registered with gerrit. How do I resolve this? Thanks in advance.
- There are still issues with too big objects.
- The first one I encountered is
tests/data/demo-wiki-data/List_of_Characters.xml
in commitcae0017f3669df26c6ecc0c0e4f7eb7771a59b69
. I see that you bz2-ed the file afterwards. But since the problematic commit is still a parent of themaster
branch, and thev2.1.1
,v2.1.2
,v2.1.3
,v2.1.4
tags, I cannot import them without re-writing history. - To work around it, I reshuffled your commits a bit and squished your fix-up commit into the problematic commit. That way, we avoid the big object and can import into gerrit. Now gerrit's
master
branch matches github'smaster
branch (except for the added.gitreview
file). - Is that good enough for you? --QChrisNonWMF (talk) 12:03, 23 March 2016 (UTC)
- Thank you so much. I apologize; I thought that I had addressed the large file successfully. I have been testing and all looks to be in good shape now. Thanks again. -- Shawn M. Jones
- Done No worries. Glad it's working for you. --QChrisNonWMF (talk) 20:26, 28 March 2016 (UTC)
- Thank you so much. I apologize; I thought that I had addressed the large file successfully. I have been testing and all looks to be in good shape now. Thanks again. -- Shawn M. Jones
Ambigous name wikistats for Gerrit Repo
[edit]Hey Chris. My bad, I should've done my homework and looked for similar names who already existed. Is it okay to change it to "wikipagestats", or shall I try to revamp the whole name? Egedda (talk) 14:16, 9 April 2016 (UTC)
- Done Created as analytics/wikipagestats --QChrisNonWMF (talk) 21:41, 13 April 2016 (UTC)
RE: new gerrit repository for Extension:CategoryWatch
[edit]Hi Chris,
Thanks to create the new repository!
To answer your question about the user account.
I did sign up Wikitech to create an account, here is my user page: https://wikitech.wikimedia.org/wiki/User:Sean_chen.
I do have a Mediawiki.org account too: User:Seanchen.
Thanks,
-Sean
- Hi Sean. I see your user page, but I cannot find you in our LDAP directory. I'll have to reach out to our LDAP admins. --QChrisNonWMF (talk) 01:52, 6 April 2017 (UTC)
- Hi Chris, I did link my WikiTech account to my MediaWiki account, details in task: https://phabricator.wikimedia.org/T162544. Could you try again to find my LDAP user? Thanks a lot! --Seanchen (talk) 02:15, 10 April 2017 (UTC)
- Hi Sean. Sorry for the sickness-related slow turnaround. Gerrit still has issues adding it. Just a heads up that I am still working on it. --QChrisNonWMF (talk) 15:38, 13 April 2017 (UTC)
- HI Chris, I finally created the proper LDAP user: https://wikitech.wikimedia.org/wiki/User:Seanchenldap. Could you try find me again? Thanks! --Seanchen (talk) 13:03, 13 June 2017 (UTC)
- Done Hi Sean. This fell off of my radar. Sorry. I found Seanchenldap and granted you access to the CategoryWatch extension on gerrit. --QChrisNonWMF (talk) 21:44, 13 June 2017 (UTC)
defaultbranch vs. track
[edit]Hi Chris,
thanks for creating the Whoops repo!
I noticed that the .gitreview
file uses defaultbranch=master
but some time ago all extensions were updated to use track=1
instead. Maybe some template needs to be updated? --Tgr (WMF) (talk) 15:05, 21 May 2017 (UTC)
- Done Thanks for the heads up. I fixed the template. --QChrisNonWMF (talk) 20:51, 21 May 2017 (UTC)
New repo
[edit]Hi! I've added at Gerrit/New repositories/Requests/Entries a request that was made at phab:T174281. Not sure where these things are handled today (still at that page or at Phabricator). In any case, if you could please handle it that'd be great. Note that it's Huji's request, not mine. Regards, —MarcoAurelio (talk) 13:00, 28 August 2017 (UTC)
- Done Hi! Thanks for the heads up. I've chimed in there --QChrisNonWMF (talk) 21:08, 28 August 2017 (UTC)
- Thanks! Just saw your question. I hope that Huji can reply to it as he's going to be the owner. Best regards, —MarcoAurelio (talk) 21:09, 28 August 2017 (UTC)
- @QChrisNonWMF: I responded there, though that page's design is kind of bizarre to contain discussions. I respond here too: it will be a Gadget much like Twinkle Huji (talk) 15:32, 29 August 2017 (UTC)
- Thanks! Just saw your question. I hope that Huji can reply to it as he's going to be the owner. Best regards, —MarcoAurelio (talk) 21:09, 28 August 2017 (UTC)
Re-opening the archived AdvancedMeta
[edit]Hello, I've added the Request for re-opening the archived AdvancedMeta extension at Gerrit/New repositories/Requests/Entries. Thank you for doing so!
I committed a new change:
[2]
Unfortunately the jenkins brings up this message:
fail-archived-repositories https://integration.wikimedia.org/ci/job/fail-archived-repositories/103/console : This repository has been archived and new patches are not being accepted....
Is there something I can do to make the bot work normally for this repo again?
Best regards, pwirth
- Done Hello, this was resolved here: [3]. Best regards, pwirth 07:54, 15 May 2018 (UTC)
- Whoops! Sorry, missed that one. Glad you could fix it. --QChrisNonWMF (talk) 21:38, 15 May 2018 (UTC)
Import content when creating a new repo
[edit]Hi QChris. When handling https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/PrimarySources I was asked on the request page to import the content from https://github.com/marfox/pst-frontend - I was thinking on just downloading the content to my local machine and push it to gerrit, but I was wondering if there's another way to do it? I'm not sure if we're using another form. Thanks for your help. Best regards, MarcoAurelio (talk) 17:27, 17 June 2018 (UTC)
- I'm also doing the pull-to-local-machine-and-push-to-gerrit-from-there routine. Up to now, this was good enough for all imports that I had to do. --QChrisNonWMF (talk) 22:20, 19 June 2018 (UTC)
Concern about creation of "awmd-stats" tool on Gerrit
[edit]Hello QChrisNonWMF,
Thanks for importing the tool to Gerrit (awmd-stats). One more thing is lacking, managers / maintainers of the repo should be able to submit after CR+2 & V+2. You can see here that I could V+2 and CR+2 but could not submit: https://gerrit.wikimedia.org/r/c/labs/tools/awmd-stats/+/453303. Thanks!
Cheers! --Alangi Derick (talk) 23:54, 16 August 2018 (UTC)
- Done Hi @Alangi Derick: . The default for projects is to make Jenkins (CI) submit the changes. But that's not mandatory, so I granted you Submit on the project. This should give you the blue Submit button --QChrisNonWMF (talk) 22:55, 17 August 2018 (UTC)
- Thanks you very much @QChrisNonWMF: . Once we setup Jenkins to run CI tests on the repo, I think Jenkins will begin handling merges but for now, it will be manual until that is done. Thanks a lot :) --Alangi Derick (talk) 23:05, 17 August 2018 (UTC)
Indic OCR tool
[edit]Hello QChrisNonWMF, You just created labs/tools/indic-ocr repo on my request. Thank you very much for that. Can you import these files? And I want to know one more thing Is it possible a synonymous system for that means If I merge patch on gerrit. It will update on GitHub too? or Vice-Versa If possible Please enable it.--Jayprakash12345 (talk) 18:16, 20 November 2018 (UTC)
- Done Hi @Jayprakash12345: I've just imported the repo you asked for. The changes you merge in gerrit will automatically get pushed to wikimedia's labs-tools-indic-ocr github repo and will also be available in the LTIO Phabricator repo. Both of these are 1-way syncs. So what happens on GitHub or Phabricator does not get synced back to Gerrit automatically. (2-way syncing is hard) --QChrisNonWMF (talk) 00:01, 25 November 2018 (UTC)
- QChrisNonWMF Thank you your help. One way synchronization is enough for me.--Jayprakash12345 (talk) 07:39, 25 November 2018 (UTC)
mediawiki/extensions/NativeSvgHandler repo request
[edit]Hi Chris, I wasn't able to get in touch with the original author. The extension is not maintained for years and the author has not responded to any pull requests on GitHub. - Alistair3149 (talk) 23:55, 16 December 2019 (UTC)
- @Alistair3149: I've reached out by email to him. Let's give him a week or so to respond. If there is no response by then, I'll create the repo for you. --QChrisNonWMF (talk) 23:38, 18 December 2019 (UTC)
- @QChrisNonWMF: Thank you so much! Please let me know if he replies or after a week then! -- Alistair3149 (talk) 03:56, 19 December 2019 (UTC)
Done The original author replied promptly and said that he is ok with handing the extension over. I've now created the repo as requested. --QChrisNonWMF (talk) 23:28, 19 December 2019 (UTC)
Sync VideoCutTool Gerrit repo and Github repo
[edit]Hi Chris, Any way to automate 2-way sync of VideoCutTool Gerrit repo and my GitHub repo? Currently, we have all the latest versions of the codebase in my GitHub repo and I want to keep the Gerrit repo sync with my Github repo. (https://gerrit.wikimedia.org/r/labs/tools/VideoCutTool & https://github.com/gopavasanth/video-cut-tool)
- @Gopavasanth: Automatic 2-way sync is always tricky (reviews, CI, and what not). Our Gerrit only does 1-way sync from Gerrit to GitHub. For the VideoCutTool, Gerrit brings all changes of the labs/tools/VideoCutTool repo over to GitHub at https://github.com/wikimedia/labs-tools-VideoCutTool . If you want to sync your own repo to gerrit automatically, you do so for example by leveraging git's hooks to (E.g.: pre-push) to sync your local repo not only to your GitHub repo but also to WMF's Gerrit in one go. But I'm not sure it's worth the trouble. I'd not do it if I was you and I'd instead develop straight with the Gerrit repo. Gerrit will bring the code to GitHub. So GitHub users will be able to see/search/... the code. And you'll make your life easier that way. --QChrisNonWMF (talk) 22:30, 25 January 2020 (UTC)
@QChrisNonWMF: Aah okay, I won't prefer to make a new patch and merge myself to sync GitHub and Gerrit repos of VideoCutTool, so I would like to import the newer versions of repository from my GitHub, so can you delete existing repo: https://gerrit.wikimedia.org/r/labs/tools/VideoCutTool and import new repo named VideoCutTool from "https://github.com/gopavasanth/video-cut-tool" and also same applies to this I would request to delete this "https://gerrit.wikimedia.org/r/labs/tools/video-cut-tool-back-end" and import the repo named video-cut-tool-back-end from https://github.com/gopavasanth/video-cut-tool-back-end with all new changes, I know this is not a good idea but we can sync repos in this way, what do you think?
Done :@Gopavasanth: Synced the contents of your local repos to Gerrit's repos. (Since Gerrit already had master
branches, these old master
branches are still available as branch gerrit-old-master
in Gerrit. Feel free to delete them if you no longer need them.) --QChrisNonWMF (talk) 22:12, 28 January 2020 (UTC)
Repo creation doubt
[edit]Hi Chris. I hope that you're okay. I'm not sure how to handle the "mw" repo request lodged by KHarlan. The requestor is unsure under which parent project and naming the repo should be. Could you please take a look if possible? Thanks. Best regards, —MarcoAurelio (talk) 12:26, 10 March 2020 (UTC)
- @MarcoAurelio: I saw the repo shortly before falling ill, and it fell off of my radar. Thanks for your message. I'll see what I can do. --QChrisNonWMF (talk) 19:51, 10 March 2020 (UTC)
Wikispeech services
[edit]Hi! Sorry for posting here, couldn't figure out how to edit the Gerrit request comments.
We'd be happy to live under /mediawiki/services/wikispeech/*
Could you please also inherit rights from mediawiki/extensions/Wikispeech for all the repos?
Karl Wettin (WMSE) (talk) 11:38, 29 April 2020 (UTC)
Done @Karl Wettin (WMSE): Thanks! Repos got created. --QChrisNonWMF (talk) 07:17, 3 May 2020 (UTC)
A barnstar for you!
[edit]The Technical Barnstar | |
Thank you for all the work you do to help folks get their FOSS code into Gerrit. It is very much appreciated by myself and the larger tech community. BDavis (WMF) (talk) 20:26, 10 May 2020 (UTC) |
- Thanks! :-D --QChrisNonWMF (talk) 20:40, 10 May 2020 (UTC)
Issue with new repo
[edit]Hi, Chris,
Thank you for creating a new repo operations/software/wmfbackups as requested.
Sadly, you have assigned yourself as the owner, and I have limited grants on it. I would need to push (including history) the commits from the branched operations/software/wmfmariadbpy, but I don't have permissions to create objects (this has happened to me in the past due to lack of permissions). Could you either push the history of the previous repo yourself, or give me ownership grants on the repo so I can do it myself?
Compare how Kormat and I are owners of the original repo: https://gerrit.wikimedia.org/r/admin/groups/f948dea7f1f871e879aacb863838a9bcf4e17793,members while you are the owner of the new one: https://gerrit.wikimedia.org/r/admin/groups/39566e9568c6908f909070828b6bd9ebb3c21375,members operations/software rights are inherited, but only for conventional pushes/fetches- We cannot create tags or push metadata on the new one!
Thank you! --JCrespo (WMF) (talk) 07:53, 1 September 2020 (UTC)
- Thanks Chris, but another gerrit admin ran to help and made us owners of the repo so we could temporarily add extra grants to import the history (I needed push and forge identities for that). No further work is needed, although FYI you keep being an admin on the repo. --JCrespo (WMF) (talk) 08:43, 1 September 2020 (UTC)
- @JCrespo (WMF): Whoops! Sorry for accidentally not adjusting the group members. Thank you akosiaris for adding them. --QChrisNonWMF (talk) 10:04, 1 September 2020 (UTC)
New repositories request
[edit]Hi, I have requested a repo at Gerrit/New repositories/Requests. It is a urgent request. Please go through it :)--Jay (CIS-A2K) (talk) 05:25, 9 November 2020 (UTC)
- @Jay (CIS-A2K): Hi, I created the repo, and set one of the given accounts as owner but failed with the second one. Let's discuss on the repo page.
Done --QChrisNonWMF (talk) 07:39, 9 November 2020 (UTC)
Rename repo
[edit]I previously requested the creation of the extensions/TemplateScripts repo, but I would now like to change its name to extensions/UseResource (or have it deleted and replaced with extensions/UseResource) as it was suggested that new functionality should be added and the old name no longer makes sense.BrandonXLF (talk) 06:52, 28 January 2021 (UTC)
@BrandonXLF: I've retired the repo at the old name, and created a fresh repo for you. --QChrisNonWMF (talk) 21:12, 28 January 2021 (UTC)
Done See https://www.mediawiki.org/w/index.php?title=Gerrit%2FNew_repositories%2FRequests%2FEntries&type=revision&diff=4377333&oldid=4377317 --QChrisNonWMF (talk) 21:11, 28 January 2021 (UTC)
- Thanks for your help! BrandonXLF (talk) 03:46, 29 January 2021 (UTC)
Repo permissions
[edit]Hi Chris,
Thanks for setting up the TwinkleCore repo. However, could you add the required permissions so that I'm able do git push --mirror
to it? (The actual development takes place on GitHub. This repo is intended to be used as a mirror).
The error I get on trying to do that at the moment is:
remote: error: branch refs/meta/config:
remote: Cannot delete project configuration from 'refs/meta/config'
remote: User: sd
remote: Contact an administrator to fix the permissions
I'm following the guidance from Topic:Uqfdy3c6kjpv1c2z. Thanks! SD0001 (talk) 21:37, 2 April 2021 (UTC)
- @SD0001:
refs/meta/config
is a special Gerrit branch. By pushing with--mirror
(and I assume you do not have a localrefs/meta/config
branch) you're trying to delete therefs/meta/config
branch. As Gerrit needs that branch, it denies your delete request. That's expected behaviour. There are a few ways around that. The simplest is to avoid--mirror
and instead run
git push --all $YOUR_SETTINGS_TO_CONNECT_TO_GERRIT git push --tags $YOUR_SETTINGS_TO_CONNECT_TO_GERRIT
- That command brings new local branches and new local tags to Gerrit (I hope you're coding in a way that you don't need to add
--force
). It's what I run to import repos. Note however, that it does not remove branches on Gerrit that you deleted locally (and hence does not attempt to deleterefs/meta/config
). If that's an issue depends on how you use git. --QChrisNonWMF (talk) 18:39, 4 April 2021 (UTC)- Thanks. I'll do that or maybe just keep the master in sync, the other branches and tags are likely unnecessary anyway. That aside, I noticed that the GitHub mirror is quite outdated. Does it not automatically remain in sync with the Gerrit repo? SD0001 (talk) 19:04, 4 April 2021 (UTC)
- @SD0001: For whatever reason, GitHub chose to use the
dev
branch (which indeed is far behind master) as default branch. So when one goes to https://github.com/wikimedia/mediawiki-gadgets-TwinkleCore, one was shown thedev
branch. I switched the GitHub's default branch tomaster
. Does it now look as expected? --QChrisNonWMF (talk) 06:21, 5 April 2021 (UTC)- Yes, looks good. Thanks for taking care of it. SD0001 (talk) 06:25, 5 April 2021 (UTC)
- Perfect! --QChrisNonWMF (talk) 09:03, 6 April 2021 (UTC)
- Yes, looks good. Thanks for taking care of it. SD0001 (talk) 06:25, 5 April 2021 (UTC)
- @SD0001: For whatever reason, GitHub chose to use the
Done --QChrisNonWMF (talk) 09:03, 6 April 2021 (UTC)
varnish_modules
[edit]Hi @QChrisNonWMF: operations/debs/varnish-modules is certainly fine as well, thank you for checking! SSingh (WMF) (talk) 01:02, 11 November 2022 (UTC)
- @SSingh (WMF): Thanks for confirming --QChrisNonWMF (talk) 13:02, 11 November 2022 (UTC)
Done [4] --QChrisNonWMF (talk) 13:02, 11 November 2022 (UTC)
Wikimedia CDN
[edit]Hi Chris, hope you're well! I'm looking for a way to load JavaScript directly from a Wikimedia repo, and I thought maybe you may know a way. For example, I want to load the code at https://gerrit.wikimedia.org/r/plugins/gitiles/wikipedia/gadgets/ProveIt/+/master/proveit.js with something like:
mw.loader.load('//gerrit.wikimedia.org/r/plugins/gitiles/wikipedia/gadgets/ProveIt/+/master/proveit.js');
But of course this wont work because that URL returns HTML, not JavaScript. I can see there's support for format=text and format=json parameters (for example, https://gerrit.wikimedia.org/r/plugins/gitiles/wikipedia/gadgets/ProveIt/+/master/proveit.js?format=text) but neither will fit my case. I could use jsdelivr.net like so:
mw.loader.load('//cdn.jsdelivr.net/gh/wikimedia/wikipedia-gadgets-ProveIt@master/proveit.js');
But I'd like to avoid relying on external services due to CORS errors and general resistance to such services within Wikimedia. I also tried from https://phabricator.wikimedia.org/diffusion/WGPI/browse/master/proveit.js with the following:
mw.loader.load('//phab.wmfusercontent.org/file/data/gbylmovmdmsc3nnkmgru/PHID-FILE-wrrccyr4p4l7zulyizbh/proveit.js');
But it looks like the URL changes with each new version of the file, and I'd like to always load the latest. There's also CORS issues because wmfusercontent.org is not in the "safe" domains list. Do you know of a way to accomplish what I'm after? Thanks! Sophivorus (talk) 02:51, 26 March 2023 (UTC)
- Hi @Sophivorus: ! I would have guessed that that loading the raw file from https://gerrit.wikimedia.org/r/plugins/gitiles/wikipedia/gadgets/ProveIt/+/master/proveit.js?format=text might do the trick, but I'm not sure if relying on Gerrit's gitiles is the best approach for a gadget and I'm for sure not the best person to ask about ResourceLoader. Maybe the mw.loader.load and mw.loader.getScript documentation may help? Otherwise, the methods described on the "Get help or support" section will get you to more knowledgable people. I always found the IRC channels and mailing lists good options, but YMMV. --QChrisNonWMF (talk) 15:20, 27 March 2023 (UTC)
- Hi Chris! Thanks for the reply and advice! In the end I was able to load the code directly from the raw file (using JavaScript's eval), so problem solved, thanks! I'm writing you now because I'd like to request if you can move the wikipedia/gadgets/ProveIt repo to mediawiki/gadgets/ProveIt. The reason is that ProveIt is no longer limited to Wikipedia. But also, in a few days I'd like to request another repo at mediawiki/gadgets/WikiEdit and I want to write some documentation on how to develop a fully centralized gadget using those two as examples, so I think having them in the more appropriate mediawiki/ path could help avoid unnecessary confusion to interested developers. Can this be done? Thanks! Sophivorus (talk) 13:52, 30 April 2023 (UTC)
- Hi @Sophivorus: ! Sorry for the delay. No, moving repos is not easily possible. So I instead archived
wikipedia/gadgets/ProveIt
and brought its code tomediawiki/gadgets/ProveIt
. I've uploaded a change for the CI pipeline to follow the name switch. If you have any further integrations, you'll need to switch them as well. --QChrisNonWMF (talk) 22:44, 5 May 2023 (UTC)
- Hi @Sophivorus: ! Sorry for the delay. No, moving repos is not easily possible. So I instead archived