I welded a bottom rail and back brace on the cyclerack and did nothing to battery on the bike, it still runs perfect.
I had my frame welded with gussets. I pulled the battery, the coil, disconnected or removed anything with a diode in it, and pulled the fuse. The welder knew enough to ground right next to the work, but I was in a belt- and- suspenders mood. Only a few minutes time both in and out. No regrets, but likely overdoing it. If I had been working away from the center of the bike like the rear rack I would not have been so fussy. -GB
It's always a crap shoot when you're welding around electronics that can be energized by the welder. The only way to guarantee no damage will occur is to remove them. This may not be possible if you're welding on an excavator or other large item where it would take forever to remove all electrical items. It's not only electrical items that can be damaged by welding on a vehicle. When you pass electricity through an engine the current can jump over gaps causing arcing and leave small pitts in the metal. If this happens on a bearing it can cause damage, maybe not enough that you'd notice but maybe enough to make the bearing fail prematurely. Keeping a good ground close to where you're welding with no electrical or mechanical parts between the ground and the stinger is the next best way and probably in most cases the most financially feasible way to safely weld on any vehicle.I welded my XT tank mount on. The battery ground wasn't connected but that was because I was working on the electrics, not because of the welding. I did happen to ground on the piece I was welding on. Since I am a poor welder I had to grind the welds off and re-weld in a couple of places. Everything still works.