ninetydegrees: Photo: bingo chips (bingo)
ninetydegrees (90d)☕ ([personal profile] ninetydegrees) wrote in [site community profile] dw_dev_training2012-08-23 01:49 pm

Fetching updates on Dreamhack?

How does one update their repos on their hack now? The 'old' script no longer pulls anything for me (what used to be on http://wiki.dwscoalition.org/wiki/index.php/Dev_Maintenance) and I don't understand how I can keep up with changes. :/

(Context: I'm on Windows; I use PuTTY and WinSCP).

Edit: ok, if anybody else wonders, short answer is you can no longer update your hack using old methods. :/

Edit 2: long answer is you can switch to the new system. See comments for detailed instructions. :)
kareila: (Default)

[personal profile] kareila 2012-08-23 02:21 pm (UTC)(link)
I would expect the new instructions on http://wiki.dwscoalition.org/wiki/index.php/Dev_Maintenance to work, but I haven't upgraded my 'hack yet. It may succeed silently?
kareila: (Default)

[personal profile] kareila 2012-08-23 04:05 pm (UTC)(link)
You said you were using PuTTY to get a command line on your Dreamhack, correct? The commands should be used there. Is that what you were confused about?
kareila: (Default)

[personal profile] kareila 2012-08-23 04:20 pm (UTC)(link)
Okay, I think I understand now. If you haven't switched to the new system, you won't be able to pull in the new changes because they're not being posted in the old repository any more. Mark and Fu stopped mirroring the changes in both places after the last code push.

When you were told you could keep working "the old way," that referred specifically to the patch submission process, not the update process. You are still able to submit patches through Bugzilla instead of having to create a Github pull request. But if you want to work against the very latest code, you will need to download it from the git repository.

I'm sorry if this is upsetting for you! I know it's a lot to take in and there hasn't been a lot of communication because the kinks in the process are still being worked out.
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2012-08-23 04:24 pm (UTC)(link)
Mark and Fu stopped mirroring the changes in both places after the last code push.


Huh, I totally missed that. I guess I have a lot of work to do before I can actually go back to coding again, then.

Was there an announcement I missed? I'm not seeing anything on [site community profile] dw_dev
Edited 2012-08-23 16:24 (UTC)
kareila: Taking refuge from falling debris under a computer desk. (computercrash)

[personal profile] kareila 2012-08-23 04:26 pm (UTC)(link)
I don't think it was announced. I had to ask them what was up.
kareila: (Default)

[personal profile] kareila 2012-08-23 04:30 pm (UTC)(link)
I think if you can use Github's instructions for creating a new development environment on your local machine, and use our wiki instructions for updating your Dreamhack, you should be able to get up and running, but if for any reason you run into anything that isn't clear or gives you trouble, let us know so that we can help you and also hopefully improve our own documentation!
kareila: (Default)

[personal profile] kareila 2012-08-23 04:42 pm (UTC)(link)
The most recent post in [site community profile] dw_wiki is where Fey and Fu have been coordinating efforts to update the documentation - maybe that would be a good place to brainstorm how best to address your concerns.

(I hope that doesn't come across as dismissive! I am just crap at documentation and I am happy other people are working on it who are not me.)
foxfirefey: A picture of a hand where inked stick figures hug across fingers with a heart above them. (hearts)

[personal profile] foxfirefey 2012-08-23 04:55 pm (UTC)(link)
Hey 90d--you're totally right about this and I'm sorry. I'm going to make a post to [site community profile] dw_dev about this so nobody else ends up in the dark. If you want somebody to help walk you through anything in real time, I am happy to do so--I'm working on getting myself up to the level I need to be to write good documentation on this.

Pretty much all of the directions here are for Dreamhack moving over while logged in through PuTTy, but I think what is lacking is what happens AFTER that for trying to develop anything. I will make that my top documentation priority now.
foxfirefey: A picture of a hand where inked stick figures hug across fingers with a heart above them. (hearts)

[personal profile] foxfirefey 2012-08-23 05:12 pm (UTC)(link)
No, no, that is fine! Commenting is fine! We don't want to stress you out. And I think we commented around the same time in our respective places. We love you, we love the work that you do, we've fallen down on how to best manage this transition, and we want to make it right in however you think is best!

Probably the first thing is to transfer over your development environment to Git. Fortunately, it is very forgiving--since you just move the old one out of the way, if it ends up messed up, or you want to go back to the old one for whatever reason, you could just move it back and everything would be okay.

We can work on improving this document as we go along:

http://wiki.dwscoalition.org/wiki/index.php/Moving_your_Dreamwidth_installation_to_use_Github

The first time you run into a question, just comment, and I or [personal profile] afuna will answer. I'll be tracking all comments to this entry, so you don't even have to make them all into a big thread, just any comment here, I will see it.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2012-08-23 05:25 pm (UTC)(link)
ninetyd is a great github username.

Okay, when I go to your page here:

https://github.com/ninetyd

I see that you forked dw-free and dw-nonfree a while ago, but when I try to go to the repository they link to, I get a 404:

https://github.com/ninetyd/dw-free

Is this the case for you while you are logged in? It also says that "ninetyd doesn’t have any public repositories yet".
foxfirefey: A seal making a happy face. (seal of approval)

[personal profile] foxfirefey 2012-08-23 05:34 pm (UTC)(link)
Sweet, back on the tracks--and don't worry about being slow. I'm sure you'll understand if I get pulled away and have delayed responses from work, too!
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2012-08-23 05:44 pm (UTC)(link)
Hmm, just realized that the instructions weren't explicit wrt forking, so I've added a sentence
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2012-08-23 06:11 pm (UTC)(link)
Good point. How do the transition instructions look now?
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2012-08-23 06:22 pm (UTC)(link)
Ahhh yes, both $LJHOME and $LJHOME/ext are used as-is, as compared to before when the contens of $LJHOME/cvs/* had to be synced over to $LJHOME first.

So the two are the same thing; the differences only relevant if you're comparing against the old way of doing things. Hmm, I'm not quite sure how to explain.

Maybe take out those two points and instead say:

* all code from dw-free ($LJHOME) and the additional repos under $LJHOME/ext are live. There's no need to run any additional syncing steps
foxfirefey: A seal making a happy face. (seal of approval)

[personal profile] foxfirefey 2012-08-23 06:32 pm (UTC)(link)
I have taken Fu's suggestion and your tweaks and put them in place on the wiki page!
foxfirefey: A seal making a happy face. (seal of approval)

[personal profile] foxfirefey 2012-08-23 06:22 pm (UTC)(link)
I think you are right in that they are both the same thing. They are both talking about how you don't have to run bin/cvsreport.pl. I think they end up as two separate things because before, dw-nonfree and dw-free both had to be synced; now dw-free is the base directory and dw-nonfree is in the ext directory, automatically overrides things in dw-free, and neither need syncing.

I'll try to figure out some alternative wording.
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2012-08-23 05:45 pm (UTC)(link)
Hey--

I was reading over the instructions and realized that they don't have the authenticated versions of the Github URLs, so I have edited them to be like:

git clone https://USERNAME@github.com/USERNAME/dw-free.git $LJHOME

Same with nonfree.

I remember having troubles when it came to actually trying to push anything to my repository without this. I have changed the documentation to reflect the correct things. I'm pretty sure you have already cloned and everything though, but you can change it by being in $LJHOME or $LJHOME/ext/dw-nonfree and going:

git remote set-url origin NEWURL

(you are free to make me explain that some more)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2012-08-23 06:27 pm (UTC)(link)
Yeah, I'm not really sure that is an important error from checkconfig.

So, if you end up trying to push from your Dreamhack, and you used this URL to clone:

git clone https://github.com/USERNAME/dw-free.git $LJHOME

Instead of one that has an authentication added to it:

git clone https://USERNAME@github.com/USERNAME/dw-free.git $LJHOME

It won't know what to do to authenticate when you try and push changes back--although cloning will have worked just fine! But, you can change the URLs in dw-free and dw-nonfree without having to reclone things by using the remote set-url command:

cd $LJHOME
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-free.git $LJHOME
cd $LJHOME/ext/dw-nonfree
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-nonfree.git $LJHOME

That way, when you go to push something, it will ask you for a password and you can provide it.
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)

[personal profile] foxfirefey 2012-08-23 06:35 pm (UTC)(link)
My fault, $LJHOME should not be on the end of those, it is confusing it to bits, these are better:

cd $LJHOME
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-free.git
cd $LJHOME/ext/dw-nonfree
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-nonfree.git
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2012-08-23 05:15 pm (UTC)(link)
Fey has already said everything that I want to say -- just seconding that comments are excellent (both for you, and for making it easy for others to see what's going on).

I'll be lurking around in case you run into any issues; I may have to head to bed soon, but fey is around, and I will be checking in first thing in my morning!
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2012-08-23 05:37 pm (UTC)(link)
I'm sorry you've gotten that impression. Thinking back on it, I don't think we've made it obvious that discussion in comments is something we encourage, so we'll have to figure out how to push for it more.
foxfirefey: A seal making a happy face. (happyface)

NEW THREAD

[personal profile] foxfirefey 2012-08-23 06:44 pm (UTC)(link)
Okay, as far as I know now you have a shiny new git-based install that is up to date. And everything is loading and everything.

I am assuming we want to work through what happens when making changes now?
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)

Re: NEW THREAD

[personal profile] foxfirefey 2012-08-23 07:43 pm (UTC)(link)
Hmm, I would not trust the dwu script that is up there yet, it hasn't taken into account some things I have found. (needing to be on an originating branch, etc). I've never used those scripts myself. So I think doing it by hand and seeing how it happens is ideal for now.

I went through the Dev Maintenance first section and changed things based on my experiences. Basically, since you should be doing your changes on their own branches, you'll need to checkout the main develop branch, and then pull from the Dreamwidth repository, then push it back to your Dreamwidth fork. If you could look at the changes I made and see if they make sense, I would much appreciate it.
foxfirefey: A picture of a hand where inked stick figures hug across fingers with a heart above them. (hearts)

Re: NEW THREAD

[personal profile] foxfirefey 2012-08-23 08:03 pm (UTC)(link)
Thank YOU so much. I'll be around at the same times tomorrow for you, okay?
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

Re: NEW THREAD

[personal profile] foxfirefey 2012-08-24 07:07 pm (UTC)(link)
Oh man, we must have passed each other--

I've made some revisions to Dev Maintenance. They basically make this a lot less...dependent on circumstances, in my opinion? Both git pull dreamwidth and git pull had troubles coping with when I was in a different branch and it ended up making things more complicated to make instructions for.

It's normal that it's asking for your password. I'm trying to figure out how to get it to remember the password, since it's kind of annoying.
foxfirefey: A picture of GIR. (gir)

Re: NEW THREAD

[personal profile] foxfirefey 2012-08-24 07:15 pm (UTC)(link)
I think it might be normal if you had styles patches you were working on in the old thing, which I suspect is the case, and now with this new thing those files don't exist anymore, which prompts the update process to be all oh maybe I should delete these and really, never answer yes because I have found out it's far easier to have styles cruft around than to fix it if you had a user using one of those styles that ended up deleted, ha.
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)

Re: NEW THREAD

[personal profile] foxfirefey 2012-08-24 07:23 pm (UTC)(link)
That's kind of strange then. I haven't had that happen and I'm a bit confused as to why it is popping up for you. And the files exist for those styles?

Re: NEW THREAD

[personal profile] swaldman 2012-09-01 08:46 am (UTC)(link)
I don't know if you can git to remember the password for ever, but you can definitely make it remember it for 15 minutes so that you don't have to type it more than that often.

On a dreamhack, type
git config --global credential.helper=cache


I have suggested that this be made a system-wide default on dreamhacks, along with some stuff like putting some outputs into colour.

Re: NEW THREAD

[personal profile] swaldman 2012-09-01 12:28 pm (UTC)(link)
ah - actually, that was me :-)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2012-08-24 07:01 pm (UTC)(link)
Okay, I've just finished up some additional revamps of Dev Maintenance. I feel a lot more comfortable with these instructions.

I have also made slight changes to the moving instructions that I hope will improve them for folks new to them.
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (thoughtful)

[personal profile] foxfirefey 2012-08-24 07:20 pm (UTC)(link)
So basically, dw-nonfree is a different repository, and updating it is a separate process from dw-free. If you feel it's better, I can work it into the above, but it's awkward because there might be cases where somebody is working for, say, their clone site and then they don't have dw-nonfree, and we've had people making clone sites start using dw-nonfree before which is awkward.

New users still have to move the old hack--I think Sophie has not yet made a new process for setting up. (It's tricky because of all the account stuff that goes on with Github now.)

I'm assuming by other instructions you mean flow stuff like making a branch, committing changes to it, pushing them up to Github and making a pull request, yes? Because we can make them right now!
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 01:52 pm (UTC)(link)
Yes, make a pull request definitely.

I think that Mark was making a joke about the True and Tried way (or maybe saying that we wouldn't be getting rid of that just yet? I don't remember the context in which he said it)

So yup just make a pull request :)
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 02:10 pm (UTC)(link)
Okay try this:

git branch -r -d origin/OLDBRANCHNAME

Note: the origin is part of it and (probably) shouldn't be changed.

If you want to get a list of all your remote branches to be really sure, do this:

git branch -r
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 02:27 pm (UTC)(link)
Oops I gave some wrong info. What I gave you will have made your repository forget about that branch that's on github.

What you actually want is:

git push origin --delete branchname
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 02:35 pm (UTC)(link)
\o/!

<333
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: dw-old?

[personal profile] fu 2012-08-29 10:59 am (UTC)(link)
Nope; only need it if you have patches you haven't transferred over.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: dw-old?

[staff profile] denise 2012-08-29 11:12 am (UTC)(link)
To add on to what Fu said, though: we're not hurting for space, so i'd leave it for at least a month or so to make sure there's nothing you forgot.