[ { "executor_entrypoints": [ "/var/www/deploy/investmoz-pipeline.py", "/etc/investmoz-deploy/delivery.json" ] }, { "file": "/var/www/deploy/investmoz-pipeline.py", "operations": [ { "line": 4, "code": "Runs as the existing deployment OS user. Never resets the served checkout," }, { "line": 33, "code": "folders[:] = [name for name in folders if not (parent/name).is_symlink()" }, { "line": 38, "code": "if path.is_symlink() or rel=='.env' or rel.startswith('public/build/assets/'):continue" }, { "line": 55, "code": "if item.name == '.env' or item.name == 'public/hot' or (item.isfile()" }, { "line": 72, "code": "if link.exists() and not link.is_symlink():" }, { "line": 73, "code": "raise RuntimeError('Current path is not a symlink; existing directory preserved')" }, { "line": 75, "code": "temporary.symlink_to(target, target_is_directory=True)" }, { "line": 79, "code": "previous = link.resolve() if link.is_symlink() else None" }, { "line": 121, "code": "self.git('fetch', '--no-tags', 'origin', '+refs/heads/'+branch+':refs/heads/delivery-target')" }, { "line": 124, "code": "raise RuntimeError('Invalid fetched revision')" }, { "line": 185, "code": "if not php.exists(): php.symlink_to(self.c['php'])" }, { "line": 199, "code": "# of bypassing those guards with a generic migrate of every module." }, { "line": 201, "code": "self.run(['npm','ci','--no-audit','--no-fund'],cwd=release,env=env)" }, { "line": 202, "code": "self.run(['npm','run','build'],cwd=release,env=env)" }, { "line": 203, "code": "self.run(['npm','run','types:check'],cwd=release,env=env)" }, { "line": 214, "code": "if (release/'public/hot').exists(): raise RuntimeError('Development Vite marker must not ship')" }, { "line": 225, "code": "(release/'storage').symlink_to(self.legacy/'storage',target_is_directory=True)" }, { "line": 226, "code": "(release/'.env').symlink_to(self.legacy/'.env')" }, { "line": 228, "code": "(release/'public/storage').symlink_to(self.legacy/'storage/app/public',target_is_directory=True)" }, { "line": 252, "code": "installed_file=self.state/'installed.json'" }, { "line": 265, "code": "write_json(self.state/'requests'/(latest+'.json'),{'commit':latest,'reason':'newer integration during build'})" }, { "line": 272, "code": "self.run([self.c['php'],str(release/'artisan'),'queue:restart'],cwd=release)" }, { "line": 287, "code": "fcntl.flock(lock,fcntl.LOCK_EX)" }, { "line": 290, "code": "requests=sorted((self.state/'requests').glob('*.json'))" }, { "line": 291, "code": "if not requests:return succeeded" }, { "line": 292, "code": "for path in requests:" }, { "line": 303, "code": "report.update(requested_commits=[p.stem for p in requests],finished_at=datetime.datetime.now(datetime.timezone.utc).isoformat())" }, { "line": 304, "code": "write_json(self.state/'reports'/((target or 'fetch-failed')+'-'+str(time.time_ns())+'.json'),report)" }, { "line": 311, "code": "fcntl.flock(lock,fcntl.LOCK_EX)" }, { "line": 312, "code": "installed=json.loads((self.state/'installed.json').read_text())" }, { "line": 320, "code": "self.run([self.c['php'],str(prior/'artisan'),'queue:restart'],cwd=prior)" }, { "line": 321, "code": "write_json(self.state/'installed.json',previous)" }, { "line": 325, "code": "write_json(self.state/'installed.json',installed)" } ] }, { "file": "/etc/investmoz-deploy/delivery.json", "operations": [] }, { "pending_request_count": 0 } ]