Skip to content

fix(tests): relax assertions sensitive to test environment data#2319

Merged
cmgrote merged 3 commits into
mainfrom
dependencies
Mar 12, 2026
Merged

fix(tests): relax assertions sensitive to test environment data#2319
cmgrote merged 3 commits into
mainfrom
dependencies

Conversation

@cmgrote

@cmgrote cmgrote commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • admin-export: Remove assertTrue(row["Groups"] != row["Group names"]) — a group's alias is allowed to equal its technical name in Atlan, making this a false invariant
  • adoption-export (ExportRawViewsTest): Guard testViews with an early exit when the Views sheet has no rows; this occurs when all assets that appear in the search log have since been deleted from the catalog
  • adoption-export (ExportUniqueUserViewsTest): Remove the strict descending-order assertion; Elasticsearch terms aggregations sorted by a cardinality sub-aggregation do not guarantee per-row ordering across shards, making the check non-deterministic

Test plan

  • CI passes for admin-export package tests (ExportUsersTest)
  • CI passes for adoption-export package tests (ExportRawViewsTest, ExportUniqueUserViewsTest)

🤖 Generated with Claude Code

cmgrote and others added 3 commits March 12, 2026 12:58
Consolidates updates from the following dependency PRs:
- #2313: Bump awssdk from 2.42.10 to 2.42.11
- #2315: Bump io.openlineage:openlineage-java from 1.44.1 to 1.45.0
- #2314: Bump actions/download-artifact from v8.0.0 to v8.0.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
- admin-export: remove group alias != name invariant; Atlan allows a
  group's alias to equal its technical name, making this check invalid
- adoption-export: guard both testViews methods with an early exit when
  the Views sheet has no rows (occurs when all viewed assets have since
  been deleted from the catalog)
- adoption-export: remove strict descending-order assertion from
  ExportUniqueUserViewsTest; Elasticsearch terms aggregations sorted by
  a cardinality sub-aggregation do not guarantee per-row ordering across
  shards, making this check non-deterministic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@cmgrote
cmgrote enabled auto-merge March 12, 2026 16:00
@cmgrote
cmgrote merged commit 88ae658 into main Mar 12, 2026
7 checks passed
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.

1 participant