[8938] | 1 | This file contains notes about the care and feeding of the Athena |
---|
| 2 | source repository. It is intended primarily for the administrators of |
---|
[8978] | 3 | the source tree, not for developers (except perhaps for the first |
---|
| 4 | section, "mailing lists"). See the file "procedures" in this |
---|
| 5 | directory for information about procedures relevant to developers. |
---|
[8938] | 6 | |
---|
| 7 | The areas covered in this file are: |
---|
| 8 | |
---|
[20448] | 9 | Mailing lists |
---|
| 10 | Permissions |
---|
| 11 | Build machines |
---|
| 12 | The wash process |
---|
| 13 | Imake templates |
---|
| 14 | Release notes |
---|
| 15 | Release cycles |
---|
| 16 | Patch releases |
---|
| 17 | Third-party pullups for patch releases |
---|
| 18 | Rel-eng machines |
---|
| 19 | Cluster information |
---|
[8938] | 20 | |
---|
[8978] | 21 | Mailing lists |
---|
| 22 | ------------- |
---|
| 23 | |
---|
| 24 | Here are descriptions of the mailing lists related to the source tree: |
---|
| 25 | |
---|
[20448] | 26 | * source-developers |
---|
[8978] | 27 | |
---|
[20448] | 28 | For discussion of the policy and day-to-day maintenance of the |
---|
| 29 | repository. This is a public list, and there is a public discuss |
---|
| 30 | archive on menelaus. |
---|
[8978] | 31 | |
---|
[20448] | 32 | * source-reviewers |
---|
[8978] | 33 | |
---|
[20448] | 34 | For review of changes to be checked into the repository. To be a |
---|
| 35 | member of this mailing list, you must have read access to the |
---|
| 36 | non-public parts of the source tree, but you do not need to be a |
---|
| 37 | staff member. There is a non-public discuss archive on menelaus. |
---|
[8978] | 38 | |
---|
[20448] | 39 | * source-commits |
---|
[8978] | 40 | |
---|
[20448] | 41 | This mailing lists receives commit logs for all commits to the |
---|
| 42 | repository. This is a public mailing list. There is a public |
---|
| 43 | discuss archive on menelaus. |
---|
[8978] | 44 | |
---|
[20448] | 45 | * source-diffs |
---|
[8978] | 46 | |
---|
[20448] | 47 | This mailing list receives commit logs with diffs for all commits |
---|
| 48 | to the repository. To be on this mailing list, you must have read |
---|
| 49 | access to the non-public parts of the source tree. There is no |
---|
| 50 | discuss archive for this list. |
---|
[8978] | 51 | |
---|
[20448] | 52 | * source-wash |
---|
[8978] | 53 | |
---|
[20448] | 54 | This mailing list receives mail when the wash process blows out. |
---|
| 55 | This is a public mailing list. There is no discuss archive for |
---|
| 56 | this list. |
---|
[8978] | 57 | |
---|
[20448] | 58 | * rel-eng |
---|
[8978] | 59 | |
---|
[20448] | 60 | The release engineering mailing list. Mail goes here about patch |
---|
| 61 | releases and other release details. There is a public archive on |
---|
| 62 | menelaus. |
---|
[8978] | 63 | |
---|
[20448] | 64 | * release-team |
---|
[8978] | 65 | |
---|
[20448] | 66 | The mailing list for the release team, which sets policy for |
---|
[20449] | 67 | releases. There is a public archive on menelaus, with the name |
---|
| 68 | "release-77". |
---|
[8978] | 69 | |
---|
[8938] | 70 | Permissions |
---|
| 71 | ----------- |
---|
| 72 | |
---|
| 73 | Following are descriptions of the various groups found on the acls of |
---|
| 74 | the source tree: |
---|
| 75 | |
---|
[20448] | 76 | * read:source |
---|
| 77 | read:staff |
---|
[8938] | 78 | |
---|
[20448] | 79 | These two groups have identical permissions in the repository, but |
---|
| 80 | read:source contains artificial constructs (the builder user and |
---|
| 81 | service principals) while read:staff contains people. In the |
---|
| 82 | future, highly restricted source could have access for read:source |
---|
| 83 | and not read:staff. |
---|
[8938] | 84 | |
---|
[20448] | 85 | Both of these groups have read access to non-public areas of the |
---|
| 86 | source tree. |
---|
[8938] | 87 | |
---|
[20448] | 88 | * write:staff |
---|
[8938] | 89 | |
---|
[20448] | 90 | Contains developers with commit access to the source tree. This |
---|
| 91 | group has write access to the repository, but not to the |
---|
| 92 | checked-out copy of the mainline (/mit/source). |
---|
[8938] | 93 | |
---|
[20448] | 94 | * write:update |
---|
[8938] | 95 | |
---|
[20448] | 96 | Contains the service principal responsible for updating |
---|
| 97 | /mit/source. This group has write access to /mit/source but not |
---|
| 98 | to the repository. |
---|
[8938] | 99 | |
---|
[20448] | 100 | * adm:source |
---|
[8938] | 101 | |
---|
[20448] | 102 | This group has administrative access to the repository and to |
---|
| 103 | /mit/source. |
---|
[8938] | 104 | |
---|
| 105 | system:anyuser has read access to public areas of the source tree and |
---|
| 106 | list access to the rest. system:authuser occasionally has read access |
---|
| 107 | to areas that system:anyuser does not (synctree is the only current |
---|
| 108 | example). |
---|
| 109 | |
---|
| 110 | The script CVSROOT/afs-protections.sh in the repository makes sure the |
---|
| 111 | permissions are correct in the repository or in a working directory. |
---|
[10296] | 112 | Run it from the top level of the repository or of /mit/source, giving |
---|
| 113 | it the argument "repository" or "wd". |
---|
[8938] | 114 | |
---|
[16977] | 115 | Build machines |
---|
| 116 | -------------- |
---|
| 117 | |
---|
| 118 | We do release builds in a chrooted environment to avoid damaging the |
---|
| 119 | machines we are building on. So that builds can have access to AFS, |
---|
| 120 | we mount AFS inside the chrooted environments and make a symlink from |
---|
| 121 | /afs to the place AFS is mounted. Each build machine has two such |
---|
| 122 | environments, one in /rel (for the release build) and one in /rel/wash |
---|
| 123 | (for the wash). The second environment has to be located within the |
---|
| 124 | first, of course, so that AFS can be visible from both. |
---|
| 125 | |
---|
| 126 | To set up a build machine, follow these instructions after installing: |
---|
| 127 | |
---|
[20448] | 128 | * Set the root password. |
---|
| 129 | * Put "builder rl" in /etc/athena/access. |
---|
| 130 | * In /etc/athena/rc.conf, set SSHD and ACCESSON to true. Set |
---|
| 131 | AFSADJUST, PUBLIC, and AUTOUPDATE to false. |
---|
| 132 | * Create /rel/wash/afs and parents. |
---|
| 133 | * Edit /usr/vice/etc/cacheinfo and change the AFS mountpoint from |
---|
| 134 | "/afs" to "/rel/wash/afs". |
---|
| 135 | * Reboot. (Remote access daemons should work without AFS, more or |
---|
| 136 | less.) |
---|
| 137 | * Create symlinks /afs -> rel/wash/afs and /rel/afs -> wash/afs. |
---|
| 138 | * Run "/mit/source/packs/build/makeroot.sh /rel X.Y", where X.Y is |
---|
| 139 | the full release this build is for. |
---|
| 140 | * Run "/mit/source/packs/build/makeroot.sh /rel/wash". |
---|
[21126] | 141 | * Make a symlink from /rel/.srvd to the AFS srvd volume, if you're |
---|
| 142 | at that stage. |
---|
[21193] | 143 | * On Solaris, ensure that procfs is mounted on /rel/proc and |
---|
| 144 | /rel/wash/proc. (A host of system tools fail if procfs is not |
---|
| 145 | mounted in the chroot environment.) Add lines to /etc/vfstab to |
---|
| 146 | make this happen at boot. |
---|
[21126] | 147 | * On Solaris, install the Sun compiler locally. Run: |
---|
| 148 | pkgadd -R /rel -d /afs/dev.mit.edu/reference/sunpro8/packages \ |
---|
| 149 | -a /usr/athena/lib/update/noask `cat ../installed-packages` |
---|
| 150 | and follow the directions in |
---|
| 151 | /afs/dev.mit.edu/reference/sunpro8/README. Repeat for /rel/wash. |
---|
[16977] | 152 | |
---|
[21213] | 153 | Right now we have an issue doing a complete build of the source tree |
---|
| 154 | from scratch, because programs which use gdk-pixbuf-csource at build |
---|
| 155 | time (like gnome-panel) require /etc/athena/gtk-2.0/gdk-pixbuf.loaders |
---|
| 156 | to be set up. Since we lack machinery to deal with that kind of |
---|
| 157 | problem, the workaround is to run the build at least as far as |
---|
| 158 | third/gtk2 and then run, from within the chrooted environment: |
---|
| 159 | |
---|
| 160 | mkdir -p /etc/athena/gtk-2.0 |
---|
| 161 | gdk-pixbuf-query-loaders > /etc/athena/gtk-2.0/gdk-pixbuf.loaders |
---|
| 162 | gtk-query-immodules-2.0 > /etc/athena/gtk-2.0/gtk.immodules |
---|
| 163 | |
---|
[8938] | 164 | The wash process |
---|
| 165 | ---------------- |
---|
| 166 | |
---|
[8978] | 167 | The wash process is a nightly rebuild of the source repository from |
---|
| 168 | scratch, intended to alert the source tree maintainers when someone |
---|
| 169 | checks in a change which causes the source tree to stop building. The |
---|
| 170 | general architecture of the wash process is: |
---|
| 171 | |
---|
[20448] | 172 | * Each night at midnight, a machine performs a cvs update of the |
---|
| 173 | checked-out tree in /afs/dev.mit.edu/source/src-current. If the |
---|
| 174 | cvs update fails, the update script sends mail to |
---|
| 175 | source-wash@mit.edu. This machine is on read:source and |
---|
| 176 | write:update. |
---|
[8978] | 177 | |
---|
[20448] | 178 | * Each night at 4:30am, a machine of each architecture performs a |
---|
[20449] | 179 | build of the tree in /rel/wash/build, using the /rel/wash chroot |
---|
| 180 | environment. If the build fails, the wash script copies the log |
---|
| 181 | of the failed build into AFS and sends mail to source-wash@mit.edu |
---|
| 182 | with the last few lines of the log. |
---|
[8978] | 183 | |
---|
[9003] | 184 | Source for the wash scripts lives in /afs/dev.mit.edu/service/wash. |
---|
[12069] | 185 | They are installed in /usr/local on the wash machines. Logs of the |
---|
| 186 | start and end times of the wash processes on each machine live in |
---|
[13160] | 187 | /afs/dev.mit.edu/service/wash/status/`hostname`. See "Rel-eng |
---|
| 188 | machines" below to find out which machines take part in the wash |
---|
| 189 | process. |
---|
[8978] | 190 | |
---|
[13162] | 191 | To set up the source update on a machine: |
---|
| 192 | |
---|
[20448] | 193 | * Ensure that it is in the set of machines installed onto by |
---|
| 194 | /afs/dev.mit.edu/service/wash/inst, and run that script to install |
---|
| 195 | the wash scripts onto that machine. |
---|
[13162] | 196 | |
---|
[20448] | 197 | * Set up the cron job on the machine according to |
---|
| 198 | /afs/dev.mit.edu/service/wash/README. |
---|
[13162] | 199 | |
---|
[20449] | 200 | * Ensure that the machine has a host key. |
---|
[13162] | 201 | |
---|
[20448] | 202 | * Ensure that rcmd.machinename has a PTS identity in the dev cell. |
---|
[13162] | 203 | |
---|
[20448] | 204 | * Ensure that rcmd.machinename is in write:update. |
---|
[13162] | 205 | |
---|
[16977] | 206 | To set up the wash on a build machine: |
---|
[13162] | 207 | |
---|
[20448] | 208 | * Ensure that it is in the set of machines installed onto by |
---|
| 209 | /afs/dev.mit.edu/service/wash/inst, and run that script to install |
---|
| 210 | the wash scripts onto that machine. |
---|
[13162] | 211 | |
---|
[20449] | 212 | * Set up the cron job on the machine according to |
---|
[20448] | 213 | /afs/dev.mit.edu/service/wash/README. |
---|
[13162] | 214 | |
---|
[20449] | 215 | * Ensure that the machine has a host key. |
---|
[13162] | 216 | |
---|
[20448] | 217 | * Ensure that rcmd.machinename has a PTS identity in the dev cell. |
---|
[13162] | 218 | |
---|
[20448] | 219 | * Ensure that rcmd.machinename is in read:source. |
---|
[13162] | 220 | |
---|
[20448] | 221 | * Ensure that |
---|
| 222 | /afs/dev.mit.edu/service/wash/status/machinename.mit.edu exists |
---|
| 223 | and that rcmd.machinename has write access to it. |
---|
[13162] | 224 | |
---|
[8938] | 225 | Imake templates |
---|
| 226 | --------------- |
---|
| 227 | |
---|
[16976] | 228 | We don't like imake, but we have two sets of imake templates: |
---|
[8938] | 229 | |
---|
[20448] | 230 | * packs/build/config |
---|
[8938] | 231 | |
---|
[20448] | 232 | These templates are the legacy Athena build system. They are no |
---|
| 233 | longer used by any software in the release; we install them in |
---|
| 234 | case someone wants to build some very old software. |
---|
[8938] | 235 | |
---|
[20448] | 236 | * packs/build/xconfig |
---|
[8938] | 237 | |
---|
[20448] | 238 | These templates are used for building software which uses X-style |
---|
| 239 | Imakefiles. They may need periodic updating as new versions of X |
---|
| 240 | are released. These templates are full of a lot of hacks, mostly |
---|
| 241 | because the imake model isn't really adequate for dealing with |
---|
| 242 | third-party software and local site customizations. |
---|
[8938] | 243 | |
---|
[9708] | 244 | Release notes |
---|
| 245 | ------------- |
---|
| 246 | |
---|
| 247 | There are two kinds of release notes, the system release notes and the |
---|
| 248 | user release notes. The system release notes are more comprehensive |
---|
| 249 | and assume a higher level of technical knowledge, and are used in the |
---|
| 250 | construction of the user release notes. It is the job of the release |
---|
| 251 | engineer to produce a set of system release notes for every release, |
---|
| 252 | with early versions towards the beginning of the release cycle. The |
---|
| 253 | best way to make sure this happens is to maintain the system release |
---|
| 254 | notes throughout the entire development cycle. |
---|
| 255 | |
---|
| 256 | Thus, it is the job of the release engineer to watch the checkins to |
---|
| 257 | the source tree and enter a note about all user-visible changes in the |
---|
| 258 | system release notes, which live in /afs/dev.mit.edu/project/relnotes. |
---|
| 259 | Highly visible changes should appear near the beginning of the file, |
---|
| 260 | and less visible changes should appear towards the end. Changes to |
---|
| 261 | particular subsystems should be grouped together when possible. |
---|
| 262 | |
---|
[8938] | 263 | Release cycles |
---|
| 264 | -------------- |
---|
[8978] | 265 | |
---|
[9869] | 266 | Release cycles have five phases: crash and burn, alpha, beta, early, |
---|
| 267 | and the public release. The release team has a set of criteria for |
---|
| 268 | entering and exiting each phase, which won't be covered here. The |
---|
| 269 | following guidelines should help the release go smoothly: |
---|
[8978] | 270 | |
---|
[20448] | 271 | * Crash and burn |
---|
[9710] | 272 | |
---|
[20448] | 273 | This phase is for rel-eng internal testing. The release engineer |
---|
| 274 | needs to make sure that the current source base works well enough |
---|
| 275 | for testers to use it and find bugs. For crash and burn to begin, |
---|
| 276 | the operating system support person for each platform must provide |
---|
| 277 | a way to install or update a machine to the new version of the |
---|
| 278 | operating system for that platform. |
---|
[8993] | 279 | |
---|
[20448] | 280 | Each platform needs a build tree and system packs volume. The |
---|
| 281 | build tree should be mounted in |
---|
| 282 | /afs/dev.mit.edu/project/release/<version>/build/<sysname>. The |
---|
| 283 | system packs volume should be mounted in |
---|
| 284 | /afs/dev.mit.edu/system/<sysname>/srvd-<version>. |
---|
[12839] | 285 | |
---|
[20448] | 286 | Each platform needs a new-release build machine to generate system |
---|
| 287 | packs to test. Set it up according to the directions in "Build |
---|
| 288 | Machines" above. |
---|
[12839] | 289 | |
---|
[20448] | 290 | To do a full build for release testing: |
---|
[12839] | 291 | |
---|
[20448] | 292 | # Get tickets as builder and ssh to the wash machine |
---|
| 293 | rm -rf /rel/.srvd/* /rel/.srvd/.??* |
---|
| 294 | rm -rf /rel/build/* /rel/build/.??* |
---|
| 295 | chroot /rel sh /mit/source-X.Y/packs/build/build.sh -l & |
---|
[12839] | 296 | |
---|
[20448] | 297 | (It can be useful to run the ssh to the build machine inside a |
---|
| 298 | screen session so you don't have to log out of the build machine |
---|
| 299 | until the build is finished.) |
---|
[12839] | 300 | |
---|
[20448] | 301 | The crash and burn machines should be identified and used to test |
---|
| 302 | the update (and install, if possible). System packs may be |
---|
| 303 | regenerated at will. The system packs volume does not need any |
---|
| 304 | replication. |
---|
[12839] | 305 | |
---|
[20448] | 306 | Before the transition from crash and burn to alpha, the release |
---|
| 307 | engineer should do a sanity check on the new packs by comparing a |
---|
| 308 | file listing of the new packs to a file listing of the previous |
---|
| 309 | release's packs. The release engineer should also check the list |
---|
| 310 | of configuration files for each platform (in |
---|
| 311 | packs/update/platform/*/configfiles) and make sure that any |
---|
| 312 | configuration files which have changed are listed as changed in |
---|
| 313 | the version script. Finally, the release should be checked to |
---|
[20449] | 314 | make sure it won't overflow partitions on any client machines. |
---|
[8978] | 315 | |
---|
[20448] | 316 | A note on the wash: it is not especially important that the wash |
---|
| 317 | be running during the release cycle, but currently the wash can |
---|
| 318 | run on the new release build machine without interfering with the |
---|
| 319 | build functions of the machine. So after updating the wash |
---|
| 320 | machine to the new OS for new release builds, the release engineer |
---|
| 321 | can set up the wash right away. |
---|
[12839] | 322 | |
---|
[20448] | 323 | * Alpha |
---|
[8978] | 324 | |
---|
[20448] | 325 | The alpha phase is for internal testing by the release team. |
---|
| 326 | System packs may still be regenerated at will, but the system |
---|
| 327 | packs volume (and os volume) should be read-only so it can be |
---|
| 328 | updated by a vos release. Changes to the packs do not need to be |
---|
| 329 | propagated in patch releases; testers are expected to be able to |
---|
| 330 | ensure consistency by forcing repeat updates or reinstalling their |
---|
| 331 | machines. |
---|
[8978] | 332 | |
---|
[20449] | 333 | System release notes should be prepared during this phase. |
---|
[8978] | 334 | |
---|
[20448] | 335 | Before the transition from alpha to beta, doc/third-party should |
---|
| 336 | be checked to see if miscellaneous third-party files (the ones not |
---|
| 337 | under the "third" hierarchy) should be updated. |
---|
[8978] | 338 | |
---|
[20448] | 339 | * Beta |
---|
[9869] | 340 | |
---|
[20448] | 341 | The beta phase involves outside testers. System packs and os |
---|
| 342 | volumes should be replicated on multiple servers, and permissions |
---|
| 343 | should be set to avoid accidental changes (traditionally this |
---|
| 344 | means giving write access to system:packs, a normally empty |
---|
| 345 | group). Changes to the packs must be propagated by patch |
---|
| 346 | releases. |
---|
[9869] | 347 | |
---|
[20449] | 348 | User release notes should be prepared during this phase. Ideally, |
---|
| 349 | no new features should be committed to the source tree during the |
---|
| 350 | beta phase. |
---|
[9869] | 351 | |
---|
[20448] | 352 | For the transition from beta to early: |
---|
[11930] | 353 | |
---|
[20448] | 354 | - Prepare a release branch with a name of the form athena-8_1. |
---|
| 355 | Tag it with athena-8_1-early. |
---|
[12686] | 356 | |
---|
[20448] | 357 | - Create a volume with a mountpoint of the form |
---|
| 358 | /afs/dev.mit.edu/source/src-8.1 and check out a tree on the |
---|
| 359 | branch there. Set the permissions by doing an fs copyacl from |
---|
| 360 | an older source tree before the checkout, and run |
---|
| 361 | CVSROOT/afs-permissions.sh after the checkout. Copy over the |
---|
| 362 | .rconf file from the src-current directory. Have a filsys entry |
---|
| 363 | of the form source-8.1 created for the new tree. |
---|
[12686] | 364 | |
---|
[20448] | 365 | - attach and lock the branch source tree on each build machine. |
---|
[12686] | 366 | |
---|
[20448] | 367 | - Do a final full build of the release from the branch source |
---|
| 368 | tree. |
---|
[12686] | 369 | |
---|
[20448] | 370 | * Early |
---|
[9869] | 371 | |
---|
[20448] | 372 | The early release involves more outside testers and some cluster |
---|
| 373 | machines. The release should be considered ready for public |
---|
| 374 | consumption. |
---|
[9869] | 375 | |
---|
[20448] | 376 | The release branch should be tagged with a name of the form |
---|
| 377 | athena-8_1-early. |
---|
[9869] | 378 | |
---|
[20448] | 379 | * Release |
---|
[9869] | 380 | |
---|
[20448] | 381 | The release branch should be tagged with a name of the form |
---|
| 382 | athena-8_1-release. |
---|
[9869] | 383 | |
---|
[20448] | 384 | Once the release has gone public, the current-release machines |
---|
| 385 | should be updated to the release and set up as the build machines |
---|
| 386 | for the now-current release. Remove the /build and /.srvd |
---|
| 387 | symlinks on the new-release build machines, and make sure the wash |
---|
| 388 | is running on them if you didn't do so back in the crash and burn |
---|
| 389 | phase. |
---|
[12839] | 390 | |
---|
[9693] | 391 | One thing that needs to happen externally during a release cycle, if |
---|
| 392 | there is an OS upgrade involved, is the addition of compatibility |
---|
[13186] | 393 | symlinks under the arch directories of various lockers. All of the |
---|
| 394 | lockers listed in packs/glue/specs, as well as tellme, mkserv, and |
---|
| 395 | andrew, definitely need to be hit, and the popular software lockers |
---|
| 396 | need to be hit as well. Here is a reasonable list of popular lockers |
---|
| 397 | to get in addition to the glue ones: |
---|
[9693] | 398 | |
---|
[20448] | 399 | consult |
---|
| 400 | games |
---|
| 401 | gnu |
---|
| 402 | graphics |
---|
| 403 | outland |
---|
| 404 | sipb |
---|
| 405 | tcl |
---|
| 406 | watchmaker |
---|
| 407 | windowmanagers |
---|
| 408 | /afs/sipb/project/tcsh |
---|
[9693] | 409 | |
---|
[9869] | 410 | In addition, the third-party software lockers need to be updated; the |
---|
| 411 | third-party software group keeps their own list. |
---|
[9693] | 412 | |
---|
[10010] | 413 | Patch releases |
---|
| 414 | -------------- |
---|
| 415 | |
---|
| 416 | Once a release has hit beta test, all changes to the release must be |
---|
| 417 | propagated through patch releases. The steps to performing a patch |
---|
| 418 | release are: |
---|
| 419 | |
---|
[20448] | 420 | * Check in the changes on the mainline (if they apply) and on the |
---|
| 421 | release branch and update the relevant sections of the source tree |
---|
| 422 | in /mit/source-<version>. |
---|
[10010] | 423 | |
---|
[20448] | 424 | * If the update needs to do anything other than track against the |
---|
| 425 | system packs, you must prepare a version script which deals with |
---|
| 426 | any transition issues, specifies whether to track the OS volume, |
---|
| 427 | specifies whether to deal with a kernel update, and specifies |
---|
| 428 | which if any configuration files need to be updated. See the |
---|
| 429 | update script (packs/update/do-update.sh) for details. See |
---|
| 430 | packs/build/update/os/*/configfiles for a list of configuration |
---|
| 431 | files for a given platform. The version script should be checked |
---|
| 432 | in on the mainline and on the release branch. |
---|
[10010] | 433 | |
---|
[20448] | 434 | * Do the remainder of the steps as "builder" on the build machine. |
---|
| 435 | Probably the best way is to get Kerberos tickets as "builder" and |
---|
| 436 | ssh to the build machine. |
---|
[12686] | 437 | |
---|
[20448] | 438 | * Make sure to add symlinks under /build tree for any files you have |
---|
| 439 | added. Note that you probably added a build script if the update |
---|
| 440 | needs to do anything other than track against the system packs. |
---|
[10010] | 441 | |
---|
[20448] | 442 | * In the build tree, bump the version number in packs/build/version |
---|
| 443 | (the symlink should be broken for this file to avoid having to |
---|
| 444 | change it in the source tree). |
---|
[10010] | 445 | |
---|
[20448] | 446 | * If you are going to need to update binaries that users run from |
---|
| 447 | the packs, go into the packs and move (don't copy) them into a |
---|
| 448 | .deleted directory at the root of the packs. This is especially |
---|
| 449 | important for binaries like emacs and dash which people run for |
---|
| 450 | long periods of time, to avoid making the running processes dump |
---|
| 451 | core when the packs are released. |
---|
[10010] | 452 | |
---|
[20448] | 453 | * Update the read-write volume of the packs to reflect the changes |
---|
| 454 | you've made. You can use the build.sh script to build and install |
---|
| 455 | specific packages, or you can use the do.sh script to build the |
---|
| 456 | package and then install specific files (cutting and pasting from |
---|
| 457 | the output of "gmake -n install DESTDIR=/srvd" is the safest way); |
---|
| 458 | updating the fewest number of files is preferrable. Remember to |
---|
| 459 | install the version script. |
---|
[10010] | 460 | |
---|
[20448] | 461 | * Use the build.sh script to build and install packs/build/finish. |
---|
| 462 | This will fix ownerships and update the track lists and the like. |
---|
[10010] | 463 | |
---|
[20448] | 464 | * It's a good idea to test the update from the read-write packs by |
---|
| 465 | symlinking the read-write packs to /srvd on a test machine and |
---|
| 466 | taking the update. Note that when the machine comes back up with |
---|
| 467 | the new version, it will probably re-attach the read-write packs, |
---|
| 468 | so you may have to re-make the symlink if you want to test stuff |
---|
| 469 | that's on the packs. |
---|
[10010] | 470 | |
---|
[20448] | 471 | * At some non-offensive time, release the packs in the dev cell. |
---|
[10010] | 472 | |
---|
[20448] | 473 | * Send mail to rel-eng saying that the patch release went out, and |
---|
| 474 | what was in it. (You can find many example pieces of mail in the |
---|
| 475 | discuss archive.) Include instructions explaining how to |
---|
| 476 | propagate the release to the athena cell. |
---|
[10010] | 477 | |
---|
[20247] | 478 | Third-party pull-ups for patch releases |
---|
| 479 | --------------------------------------- |
---|
| 480 | |
---|
| 481 | In CVS, unmodified imported files have the default branch set to |
---|
| 482 | 1.1.1. When a new version is imported, such files need no merging; |
---|
| 483 | the new version on the vendor branch automatically becomes the current |
---|
| 484 | version of the file. This optimization reduces storage requirements |
---|
| 485 | and makes the merge step of an import faster and less error-prone, at |
---|
| 486 | the cost of rendering a third-party module inconsistent between an |
---|
| 487 | import and a merge. |
---|
| 488 | |
---|
| 489 | Due to an apparent bug in CVS (as of version 1.11.2), a commit to a |
---|
| 490 | branch may reset the default branch of an unmodified imported file as |
---|
| 491 | if the commit were to the trunk. The practical effect for us is that |
---|
| 492 | pulling up versions of third-party packages to a release branch |
---|
| 493 | results in many files being erroneously shifted from the unmodified |
---|
| 494 | category to the modified category. |
---|
| 495 | |
---|
| 496 | To account for this problem as well as other corner cases, use the |
---|
| 497 | following procedure to pull up third-party packages for a patch |
---|
| 498 | release: |
---|
| 499 | |
---|
[20448] | 500 | cvs co -r athena-X_Y third/module |
---|
| 501 | cd third/module |
---|
| 502 | cvs update -d |
---|
| 503 | cvs update -j athena-X_Y -j HEAD |
---|
| 504 | cvs ci |
---|
| 505 | cd /afs/dev.mit.edu/source/repository/third/module |
---|
| 506 | find . -name "*,v" -print0 | xargs -0 sh /tmp/vend.sh |
---|
[20247] | 507 | |
---|
| 508 | Where /tmp/vend.sh is: |
---|
| 509 | |
---|
[20448] | 510 | #!/bin/sh |
---|
[20247] | 511 | |
---|
[20448] | 512 | for f; do |
---|
| 513 | if rlog -h "$f" | grep -q '^head: 1\.1$' && \ |
---|
| 514 | rlog -h "$f" | grep -q '^branch:$' && \ |
---|
| 515 | rlog -h "$f" | grep -q 'vendor: 1\.1\.1$'; then |
---|
| 516 | rcs -bvendor "$f" |
---|
| 517 | fi |
---|
| 518 | done |
---|
[20247] | 519 | |
---|
| 520 | The find -print0 and xargs -0 flags are not available on the native |
---|
| 521 | Solaris versions of find and xargs, so the final step may be best |
---|
| 522 | performed under Linux. |
---|
| 523 | |
---|
[9710] | 524 | Rel-eng machines |
---|
| 525 | ---------------- |
---|
| 526 | |
---|
[15229] | 527 | The machine running the wash update is equal-rites.mit.edu. |
---|
[13160] | 528 | |
---|
[11930] | 529 | There are three rel-eng machines for each platform: |
---|
[9710] | 530 | |
---|
[20448] | 531 | * A current release build machine, for doing incremental updates to |
---|
| 532 | the last public release. This machine may also be used by |
---|
| 533 | developers for building software. |
---|
[9710] | 534 | |
---|
[20448] | 535 | * A new release build machine, for building and doing incremental |
---|
| 536 | updates to releases which are still in testing. This machine also |
---|
| 537 | performs the wash. This machine may also be used by developers |
---|
| 538 | for building software, or if they want a snapshot of the new |
---|
| 539 | system packs to build things against. |
---|
[9710] | 540 | |
---|
[20448] | 541 | * A crash and burn machine, usually located in the release |
---|
| 542 | engineer's office for easy physical access. |
---|
[9710] | 543 | |
---|
[11930] | 544 | Here is a list of the rel-eng machines for each platform: |
---|
[9710] | 545 | |
---|
[20449] | 546 | Sun Linux |
---|
[9710] | 547 | |
---|
[20449] | 548 | Current release build maytag kenmore |
---|
| 549 | New release build downy snuggle |
---|
| 550 | Crash and burn pyramids men-at-arms |
---|
[9710] | 551 | |
---|
[10294] | 552 | For reference, here are some names that fit various laundry and |
---|
| 553 | construction naming schemes: |
---|
| 554 | |
---|
[20448] | 555 | * Washing machines: kenmore, whirlpool, ge, maytag |
---|
| 556 | * Laundry detergents: fab, calgon, era, cheer, woolite, |
---|
| 557 | tide, ultra-tide, purex |
---|
| 558 | * Bleaches: clorox, ajax |
---|
| 559 | * Fabric softeners: downy, final-touch, snuggle, bounce |
---|
| 560 | * Heavy machinery: steam-shovel, pile-driver, dump-truck, |
---|
| 561 | wrecking-ball, crane |
---|
| 562 | * Construction kits: lego, capsela, technics, k-nex, playdoh, |
---|
| 563 | construx |
---|
| 564 | * Construction materials: rebar, two-by-four, plywood, |
---|
| 565 | sheetrock |
---|
| 566 | * Heavy machinery companies: caterpillar, daewoo, john-deere, |
---|
| 567 | sumitomo |
---|
| 568 | * Buildings: empire-state, prudential, chrysler |
---|
[10294] | 569 | |
---|
[9587] | 570 | Clusters |
---|
| 571 | -------- |
---|
| 572 | |
---|
| 573 | The getcluster(8) man explains how clients interpret cluster |
---|
| 574 | information. This section documents the clusters related to the |
---|
| 575 | release cycle, and how they should be managed. |
---|
| 576 | |
---|
[9588] | 577 | There are five clusters for each platform, each of the form |
---|
| 578 | PHASE-PLATFORM, where PHASE is a phase of the release cycle (crash, |
---|
| 579 | alpha, beta, early, public) and PLATFORM is the machtype name of the |
---|
| 580 | platform. There are two filsys entries for each platform and release |
---|
| 581 | pointing to the athena cell and dev cell system packs for the release; |
---|
| 582 | they have the form athena-PLATFORMsys-XY and dev-PLATFORMsys-XY, where |
---|
[20449] | 583 | X and Y are the major and minor numbers of the release. |
---|
[9587] | 584 | |
---|
| 585 | At the crash and burn, alpha, and beta phases of the release cycle, |
---|
| 586 | the appropriate cluster (PHASE-PLATFORM) should be updated to include |
---|
| 587 | data records of the form: |
---|
| 588 | |
---|
[20448] | 589 | Label: syslib Data: dev-PLATFORMsys-XY X.Y t |
---|
[9587] | 590 | |
---|
| 591 | This change will cause console messages to appear on the appropriate |
---|
| 592 | machines informing their maintainers of a new testing release which |
---|
| 593 | they can take manually. |
---|
| 594 | |
---|
| 595 | At the early and public phases of the release cycle, the 't' should be |
---|
| 596 | removed from the new syslib records in the crash, alpha, and beta |
---|
| 597 | clusters, and the appropriate cluster (early-PLATFORM or |
---|
| 598 | public-PLATFORM) should be updated to include data records: |
---|
| 599 | |
---|
[20448] | 600 | Label: syslib Data: athena-PLATFORMsys-XY X.Y |
---|
[9587] | 601 | |
---|
| 602 | This change will cause AUTOUPDATE machines in the appropriate cluster |
---|
| 603 | (as well as the crash, alpha, and beta clusters) to take the new |
---|
| 604 | release; console messages will appear on non-AUTOUPDATE machines. |
---|