Skip to content

Conversation

erayaydin
Copy link
Contributor

Made the functional test script simpler. We no longer compare visitorId between recent and oldest events.

✏️ What Changed?

  • Compare old vs new events by requestId only (removed visitorId check) so repeated visitors don't fail the check.
  • Add declare(strict_types=1).
  • Centralize env access with env().
  • Use match() for region selection.
  • Normalize variable names to camelCase.

Upstream deprecation noise is fixed, so the `E_DEPRECATED` mask and
comments are removed from `run_checks.php`. No behavior change.

Related-Task: INTER-1473
Remove `visitorId` comparison to avoid false positives. Compare only
`requestId`. Add strict types, env function helper, and match for region
selection. Normalize variable names.

Related-Task: INTER-1473
@erayaydin erayaydin self-assigned this Sep 28, 2025
Use `STDOUT` instead of `STDERR` for writing "Old events are good"
message.

Related-Task: INTER-1473
Copy link
Contributor

🟢 Coverage increased by 35.92%

Code Coverage Report

Coverage Report

St. Category Percentage Covered / Total
🔴 Statements 35.92% 1835 / 5109
🔴 Functions 28.20% 669 / 2372
Files Coverage
St. File Methods Statements Total Coverage
🔴 src/Model/BotdBotResult.php 0.00% 0.00% 0.00%
🔴 src/Model/ErrorCode.php 0.00% 0.00% 0.00%
🔴 src/Model/ModelInterface.php 0.00% 0.00% 0.00%
🔴 src/Model/ProxyConfidence.php 0.00% 0.00% 0.00%
🔴 src/Model/VPNConfidence.php 0.00% 0.00% 0.00%

@erayaydin erayaydin marked this pull request as ready for review September 29, 2025 13:13
Copy link
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

@erayaydin erayaydin merged commit 7c7d079 into main Sep 30, 2025
15 checks passed
@erayaydin erayaydin deleted the feat/remove-visitorId-comparison-inter-1473 branch September 30, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants