" /> Status for Andrew DeFaria: February 2004 Archives

« January 2004 | Main | March 2004 »

February 27, 2004

Hok's merge

Assisting with Hok's merging of his FX -> 2.4 stuff.

February 24, 2004

Builds, Releases and Merging

Lots of merging and building with 2 releases today. Still working through problems with us_2340 <-> china_2340 merging. Had to merge flmFiles.h from 2.3 -> us_2340 to pick up some definintions. Also had to build mksf.exe because some changes were coming from China and some from here at the same time. Merging the .exe is not possible in such situations so after insuring that all sources were merged I rebuilt the .exe

  • Built and released 2.2.2.1
  • Completed merge of 2.2 -> 2.3
  • Built and released 2.3.0.5
  • Completed merge of 2.3 -> 2.4
  • Finished WebSAM Testing and entered bugs into Clearquest

February 19, 2004

build_view bug

Fixed bug in build_view:

Fixed problem counting errors in output. This is a common problem: How do you distinguish between real errors and file elements or variable that contain the string "error". The approach was:

errors=$(grep -i error $card.build.log | grep -v "Errors: 0" | grep -vc "cli_errors.c")

which looks for errors in general, weeds out the "Errors: 0" that the NP complier puts out and then makes an exception for the file element named cli_errors.c. Well with onu2311 comes new output that contains the string "error" but is not an error. Notably:

dmt_main.c: In function `reportErrorPort':
dmt_main.c:274: warning: implicit declaration of function `resetPortErrorCounts'

For now we will make an exceptions for "ErrorPort" and "PortError" but this is not an ideal solution to the problem in general.

February 18, 2004

WebSAM Testing

More WebSAM Testing. Almost done...

February 13, 2004

2.3.0.4 and more testing

Was trying to get all of my WebSAM testing completed but was not able to. Got kicked onto another test system and that one had problems. Luckily Asad and Jeff helped fix things up for me. Got a lot done but may need to do more tomorrow.

2.3.0.4 releaseed

2.3.0.4 bring in the FX branch into the 2.3 release line. It also has fairly major functionality identified by bug ID 3605 (287 elements changed!) and a new card, onu2311.

Please let me know when you guys and gals make a new card! While updating the makefile will indeed insure that the new card is build when one types make, I use scripts and processes that rely on the definition of cards defined in /Tools/adm/etc/cards and need to update that file when a new card appears. Thanks.

Regarding the FX branch: The FX branch was a temporary branch for engineers to work on until 2.3 stablized. As such, with it's successful merge I plan on destroying both us_fx and china_fx branches. A destroy means that the branch, element versions on that branches, any labels on those element versions and merge arrows to and from the FX branches will disappear. It will be as if suddenly a bunch of new FX related code got checked into the 2.3 release line. Since the FX branch was indeed temporary I don't see any problem with destroying it though. Let me know if you have any objection to this.

Before I destroy the FX branches however Hok has to check in his code and merge it to 2.4.

February 12, 2004

Trigger bug, Testing, FX Merge complete!

  • Fixed bug in CheckinPostop.pl trigger. Seems we need to have a total of 4, count 'em, 4 "\" to equate to one "\" in Windows. Needed to change code to use "@\\\\salira" to indicate the salira vob.
  • Performed more testing of WebSAM. Didn't get very far because I encountered some sort of hardware problem that Asad got me out of (partitially). Still seem to have some misbehaving cards. Don't seem to have a PTC card in this system nor any ONUs. Must look into this more tomorrow.
  • Fixed bug in trigger for real this tiem. It was not as indicated above. We did not need extra "\"'s rather we needed to remove the "2> /dev/null" redirection as that is a Unix'ism and ActiveState Perl, which is the Perl the Clearcase is invoking, doesn't like that syntax!
  • Completed the FX merge!

February 10, 2004

Fixing code

  • Fixed bug in build script that incorrectly passes status back up to calling script. This caused build to report success when build actually failed
  • Fixed CheckInPostop script to check to see if label already exists instead of creating it everytime. This should reduce some nonsense error messages

February 9, 2004

2.3.0.3 built - build bug

Built 2.3.0.3. Not sure if it's officially done yet in that there may be some problems with the ONU2310 FPGA image.

Meantime I've been trying to figure out why sometimes the build process says all is OK when there are build errors. Turns out to be a shell problem with tee. When building I'm doing:

$ make $card.sf 2>&1 | tee -a $teefile > $card.build.log

Seems this tee thing messes up the return code from make. This can be demonstrated simply by:

$ ls nonexistance_file 2>&1 | tee -a /tmp/ls.log > /tmp/ls2.log; echo $?
0

Need to figure out how to fix this...

Merged NeoPON.ccp from 2.2 -> 2.3 by drawing merge arrow. This was after Zhiyi OKed this merge.

Worked out remaining merge issues on other branches. These were largely "can't check in identical file" type problems.

Attempted an FX -> 2.3 merge. Only like 40 elements to merge but some manual merging was required. Due to 2.3.0.3 build for KDDI this was put on hold. Need to merge this then allow Hok to check in before destroying this branch.

February 6, 2004

CI Trigger Bug

Fixed bug in CheckInPost.pl. This bug was caused by an element having a space character in it (e.g. a directory named "source code"). The checkin trigger had the following line:

$result = system ("cleartool mklabel -replace $bugid $pname");

This line assumes that $pname does not contain a space character. The fix was:

$result = system ("cleartool mklabel -replace $bugid \"$pname\"");

The \"'s surround $pname and thus protect it.

February 5, 2004

2.3 KDDI release

  • Built 2.3.0.2
  • Created 2.2.2.1

February 4, 2004

2.3 merging/New 2340 branch

  • Worked on 2.3 merge problems. NeoPON.ccp came in merged but the auto merged failed due to a link problem with onu2330. Zhiyi is working on this for 2.3.0.2
  • Worked with Hong Bin to get FPGA files visible
  • Changed includeable config specs to handle new files created by other site
  • Setup us_2340/china_2340 branches, views and ctmerge jobs.

February 2, 2004

2.3 merge issues

  • Resolved 2.3 merge issues
  • More WebSAM testing...