4 Wheel Drive/SUVs: 1990 gmc sierra 305ci engine change


Question
I have 2 questions, 1) concerning an engine change. Ive read that GMC produced the 305ci engine from 1977–2003. What I want to know is how late of and engine can I put in my 1990 GMC Sierra K1500 4X4 truck without having to modify the connections, IE where the newer engine will connect to my current computer and wiring harness. My engine, 1990 GMC 305ci, TBI, 5 speed std trans.
2) Before I bought this truck I took it into a service diagnostic shop to have everything checked out. The shop said it was a great truck and the engine was tight. The shop said the truck said that it would pass the smog test with flying colors. I bought the truck, started the paperwork with DMV and took the truck to a STAR inspection station. The truck failed miserably on everything. The truck runs like a top. The star inspection station said to take it to a repair inspection station down the street to have the truck checked out and have the necessary repairs done. The 2nd shop said I needed new heads that mine were shot & @ a cost of $1800 plus materials. I took the truck back to the original diagnostic service shop with the print out from the star inspection station. They said that there isnt anything they could help me with & that DMV had me?? I took the truck home, did a complete tuneup, flushed the whole fuel system. Changed all the fuel line to braided SS. And the Day before taking the truck back in for a retest I put in 10 gals of alcohol straight/ no gas anywhere in the system. During the retest the tech says everything looks good. Then the tech asked if I had the repairs done that the other shop recommended. I told him that I did a complete tuneup/ system flush/ oil change & that I had the heads redone. The tech call the 2nd shop talked to them and then said that my trucked failed again. I tried taking the truck to a different Star inspection station and they ask if the necessary repairs have been done. They said all Star inspection stations are linked together through DMV. I then sent an email to Bureau of Automotive Repair and explained what was going on. I never heard back from them

Answer
Ken,

Wow, sounds like the repair station has something going on with the inspection station.  Not sure where you are at, but if you took the truck to a service diagnostic shop, why didn't you get a smog certificate there?  There should have been no reason to take it to a star inspection station.  In California, the seller is responsible for the smog by law.
I would try to find another reputable shop that does smog certs, and have them run a smog test, without telling them the history.  If it passes, take the cert back to DMV and file a formal complaint.  You could do a simple compression and leak down test to check the heads.

As far as what years will work with your computer, you would have to contact a shop that does this type of installations, as the specs change quite a bit depending on the year.

Check all avenues before spending the money on a new motor.

Carl