Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove reference to all missing files parsed from failed SQ targets.
Prepare for {D680506} by cherry-picking all the fixes for missing or misnamed rules input files. Will rebase D680506 after this lands and remove the duplicate changes. Missing files were determined by using a few ad hoc scripts. first downloaded all the failed logs from {D680506} via log collector: `./language-server/log-collector/collect-logs https://ton.smf1.twitter.com/sqservice/prod_666255_runTests` Then scanned the logs for the missing input files pattern: ` rg -oIN "missing input file '(\S+)'" language-server/log-collector/.cache/ | sort | uniq` Then parsed the missing file names into package and label pairs via a python script: ```python raw_lines = input().split(',') print(" ".join([line[line.find("'")+3:-1] for line in raw_lines])) ``` The using bash and sed found and replaced the file name segments in each package: ``` ❯ for p in `rg -oIN "missing input file '(\S+)'" language-server/log-collector/.cache/ | sort | uniq | paste -sd "," - | python3 ../sandbox/invalid_file_refs.py`; do package="${p%:*}/BUILD" f=${p#*:} echo "$package" "$f" sed -I "" s~\"$f\"~~g "$package" done ``` JIRA Issues: DPB-13435 Differential Revision: https://phabricator.twitter.biz/D840257
- Loading branch information