Rafter above location for light, exterior light box choice
I'd use a saddle box instead

Instead of trying to cobble together something out of two different boxes, raising issues of access to the upper box, I would use a saddle box that fits around the rafter instead, as shown below (photo for exposition only).  This provides adequate space for splicing while allowing easy access to all the wiring here just by dropping the fixture.