Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datasets tests, GHA merging, minor fix-ups #680

Merged
merged 6 commits into from
Nov 21, 2024
Merged

Conversation

AndreiCautisanu
Copy link
Contributor

@AndreiCautisanu AndreiCautisanu commented Nov 20, 2024

Details

Tests for datasets CRUD operations.

Coverage:

  • Creation via: UI (create dataset button), UI (add traces to new dataset functionality), SDK (client.create_dataset)
  • Dataset visibility: Check datasets created via both UI and SDK are visible from both UI and SDK
  • Dataset name update: Check updating dataset name via SDK is visible in both UI and SDK
  • Dataset deletion: Check deletion via both UI and SDK is reflected in both UI and SDK

Also in this PR:
Merging of the 2 Github Actions workflow files, now both the sanity suite and specific feature suites (or all of them) can be ran from the same "Application E2E tests" workflow

@AndreiCautisanu AndreiCautisanu requested review from a team as code owners November 20, 2024 20:03
Copy link
Collaborator

@ferc ferc left a comment

Choose a reason for hiding this comment

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

It's looking great :) nice work!

Comment on lines +50 to +58
try:
datasets_page = DatasetsPage(page)
datasets_page.go_to_page()
datasets_page.check_dataset_exists_on_page_by_name(dataset_name=dataset_name)
except Exception as e:
print(f'error: dataset not created: {e}')
raise
finally:
delete_dataset_by_name_if_exists(dataset_name=dataset_name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this print something that you need for something in particular? I mean, why not letting it fail and having some way to "after" the test run hook to destroy the dataset?

Not sure I get the idea on why to wrap every creation on try/catch here, I believe it should be a better way to handle it but for now we can keep it as is

@ferc ferc merged commit ec6e857 into main Nov 21, 2024
1 check passed
@ferc ferc deleted the andrei/datasets-crud-tests branch November 21, 2024 16:47
aadereiko pushed a commit that referenced this pull request Nov 25, 2024
* datasets tests, GHA merging, minor fix-ups

* descriptions

* fix dataset creation when no datasets created

* traces locator fix

* fixed sanity after UI changes too

---------

Co-authored-by: Andrei Căutișanu <[email protected]>
Co-authored-by: Andrei Căutișanu <[email protected]>
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