Skip to content

chore: dev to main merge#84

Merged
Roopan-Microsoft merged 2 commits into
mainfrom
dev
May 25, 2026
Merged

chore: dev to main merge#84
Roopan-Microsoft merged 2 commits into
mainfrom
dev

Conversation

@Saswato-Microsoft

Copy link
Copy Markdown
Collaborator

Purpose

This pull request makes minor improvements to error handling in the Fabric data ingestion and database setup scripts. The main change is to consistently use sys.exit(1) instead of the built-in exit(1) for terminating the script after an unexpected error, and to ensure the sys module is imported where needed.

Error handling improvements:

  • Replaced calls to exit(1) with sys.exit(1) in both fabric_data_ingester.py and fabric_database.py to standardize script termination on errors. [1] [2]
  • Added import sys to fabric_data_ingester.py to support the use of sys.exit(1).

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes script termination in the Fabric database setup and data ingestion scripts by removing use of the interactive-only exit() helper and consistently using sys.exit(1) on unexpected errors.

Changes:

  • Removed exit(1) calls after error handling, leaving sys.exit(1) as the single termination path.
  • Added import sys to fabric_data_ingester.py to support the sys.exit(1) call.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
infra/scripts/fabric/fabric_database.py Removes redundant exit(1) so the script uses sys.exit(1) consistently on unexpected errors.
infra/scripts/fabric/fabric_data_ingester.py Imports sys and removes redundant exit(1) to ensure consistent, non-interactive script termination.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Roopan-Microsoft Roopan-Microsoft merged commit eeab18b into main May 25, 2026
13 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.

5 participants