Skip to content

இதால எதைப் பிடிக்க முடியாது

Pass ஆகுதுன்னா சாதாரணமா record ஆன ஒவ்வொரு case-உம் original-ஓட recorded output கூட match ஆகுதுன்னும், known-diffs.jsonl-ல ஆவணப்படுத்தப்பட்ட cases அவற்றுக்கான Rust result கூட இன்னும் match ஆகுதுன்னும் (அந்த வித்தியாசம் மறைஞ்சு போனா fail ஆகும்) அர்த்தம், அதுக்கு மேல ஒன்னும் இல்ல. Rewrites-ல வழக்கமா பிரச்சனை கொடுக்குறது recording-க்கு வெளிய தான் இருக்கும், அதனால விளிம்புகள் எங்க இருக்குன்னு தெரிஞ்சுக்கோங்க:

  • யாரும் record பண்ணாத inputs. Generate ஆன cases, traps, original-ஓட test suite (record --from-tests) மற்றும் உங்களோட --inputs தான் உச்சவரம்பு. உண்மையான inputs-ஐச் சேருங்க (production samples, bug reports); prod-ஐ உடைக்குற user input ஒரு generator யோசிக்கிற ஒன்னா அரிதா தான் இருக்கும்.
  • நகர்ந்து போன ஒரு original. record unit-ஓட files-க்கான ஒரு fingerprint-ஐ save பண்ணும் (recorded-from.json); அப்புறமா original மாறும்போது, நீங்க மறுபடியும் record பண்ற வரைக்கும் diff warn பண்ணும் மற்றும் gate fail ஆகும் — original முன்னாடி என்ன பண்ணுச்சோ அதுக்கு எதிரா pass ஆகுறதுக்கு பதிலா.
  • Regexes. regex crate-ல lookaround அல்லது backreferences கிடையாது, மேலும் compile ஆகுற ஒரு pattern கூட non-ASCII text-ல \w, \b, \d மற்றும் case-insensitive matching-ஐ JS, Python அல்லது Java-ல இருந்து வித்தியாசமா கையாளலாம். fancy-regex-க்கு மாத்துறதோ அல்லது pattern-ஐ மாற்றி எழுதுறதோ record ஆன எல்லா case-லயும் pass ஆகிட்டு, இன்னும் ஒரு Turkish dotless ı அல்லது zero-width joiner-ல வேறுபடலாம். Regexes பயன்படுத்துற ஒரு file-ல இருக்குற ஒவ்வொரு function-க்கும் record regex traps-ஐ (அவை, Kelvin sign, long s, Arabic-Indic digits, line separators, final sigma) சேர்க்கும்; ஆனா உங்க உண்மையான patterns-ஐயும் உண்மையான text மேல fuzz பண்ணிப் பாருங்க.
  • Runs-க்கு இடையே மாறுபவை. record original-ஐ ரெண்டு தடவை run பண்ணி எது வேறுபட்டுச்சுன்னு பிரிச்சு எடுக்கும்: மாறிய மதிப்புகள் (times, ids) wildcards ஆகும்; வேற வரிசையில் வந்த அதே lines (hash maps, concurrency) எந்த வரிசையிலயும் compare செய்யப்படும், அதனால ஒரு port இன்னும் துல்லியமா அந்த lines-ஐத் தான் உருவாக்கணும்; வேறு எண்ணிக்கையில் வந்த lines ... ஆகும், அது எதை வேணும்னாலும் match பண்ணும். record ஒவ்வொரு வகையையும் list பண்ணும்: ஒவ்வொன்னையும் பாருங்க, ஏன்னா ஒரு port-ல நிஜமாவே மாறக்கூடியது ஒரு hash-order அல்லது concurrency வித்தியாசம் தான்.
  • Floats. Number-ல இருந்து text-ஆக்கும் formatting மொழிகளுக்கு இடையே வேறுபடும் (1e21, -0, digit counts). Traps அந்த மதிப்புகளை உள்ளடக்கும், அவை துல்லியமா match ஆகணும்; --float-tolerance rounding-ஐ மட்டும் தான் மன்னிக்கும், ஒருபோதும் formatting-ஐ இல்ல.
  • Output-ல இல்லாத எதுவும். Load-க்குக் கீழ timing, memory மற்றும் concurrency ஆகியவை compare செய்யப்படாது. stdout, stderr, exit codes, எழுதப்பட்ட files மற்றும் HTTP responses-க்கு அப்பாற்பட்ட side effects, நீங்க அவற்றை record பண்ணும்போது மட்டும் தான் compare செய்யப்படும்: app record --effects http,smtp வெளியில் போகும் HTTP calls மற்றும் email-ஐப் பிடிக்கும், மற்றும் --db-reset/--db-dump ஒவ்வொரு case-க்குப் பிறகும் database-ஓட state-ஐப் பிடிக்கும் (Side effects). Proxy வழியா போற HTTPS calls host-ஐ மட்டும் தான் காட்டும், மேலும் app வேற ஏதாவது வழியில அணுகுற எதுவும் (ஒரு message queue, signals) இன்னும் compare செய்யப்படாது.
  • மத்த platforms. ஒரு recording அது run ஆன machine-ல இருக்குற behavior-ஐத் தான் நிரூபிக்கிறது. Type sizes, endianness அல்லது compiler-ஐப் பொறுத்து முடிவுகள் மாறுற C code target-ல வித்தியாசமா நடந்துக்கலாம்; அந்த காரணத்துக்காகத் தான் analyze hardware-facing C-ஐ C-லயே வச்சுக்கும்.
GitHub-ல இந்தப் பக்கத்தை edit பண்ணுங்க →