Skip to content

Adds Embedded Sources and enable deterministic builds for Core module#1656

Merged
Aniruddh25 merged 6 commits intomainfrom
dev/shyamsundarj/fix-nupkg-health
Aug 26, 2023
Merged

Adds Embedded Sources and enable deterministic builds for Core module#1656
Aniruddh25 merged 6 commits intomainfrom
dev/shyamsundarj/fix-nupkg-health

Conversation

@severussundar
Copy link
Copy Markdown
Contributor

@severussundar severussundar commented Aug 25, 2023

Why make this change?

What is this change?

  • To fix the NuGet generated in the main branch, Product and Core modules needs to be updated. Product module was introduced later and 0.8.* NuGets do not have the Product module. So, the fix is broken into two PRs.

  • This PR adds changes only to the Core module. After merging to main, this PR can be ported over to release/0.8 branch.

  • PR #1657 adds the changes to Product module.

  • Sets EmbedUntrackedSources and ContinuousIntegrationBuild to true

How was this tested?

  • Manual Tests
    By applying the change on top of the release/0.8 branch, the health of the NuGet generated was validated
    image

@severussundar severussundar changed the title Dev/shyamsundarj/fix nupkg health Adds Embedded Sources and enable deterministic builds for Core module Aug 25, 2023
@severussundar severussundar self-assigned this Aug 25, 2023
Copy link
Copy Markdown
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

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

thanks for adding. one question.

Comment thread src/Core/Azure.DataApiBuilder.Core.csproj
Copy link
Copy Markdown
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

Thanks for noticing this and fixing it!

@Aniruddh25 Aniruddh25 enabled auto-merge (squash) August 25, 2023 23:36
Aniruddh25 added a commit that referenced this pull request Aug 25, 2023
## Why make this change?

- Closes #1655 
- The `SourceLink` NuGet health property is not `valid` due to the
absence of SourceLink dependency

## What is this change?

- `SourceLink` dependency is added to the `Product` module
- `SourceLink` embeds the git commit ID to assembly metadata. So, the
application name will be of the form `dab_oss_1.0.0+<commit_id>`. So,
test assertion logic is updated.
- This PR is a subsequent change for [PR #1656
](#1656). It describes why
the changes for fixing the NuGet health are broken down into two
separate PRs.

## How was this tested?
- [x] Manual Tests. Health of the NuGet after applying the changes from
this PR and [PR #1656
](#1656) was validated.


![image](https://github.com/Azure/data-api-builder/assets/11196553/859b507a-32d1-4990-967e-9d25884b1ea6)

Co-authored-by: Aniruddh Munde <[email protected]>
@Aniruddh25 Aniruddh25 merged commit 31b7542 into main Aug 26, 2023
@Aniruddh25 Aniruddh25 deleted the dev/shyamsundarj/fix-nupkg-health branch August 26, 2023 00:56
Aniruddh25 added a commit that referenced this pull request Aug 26, 2023
…#1656)

## Why make this change?

-  Closes #1655 
- Health of [0.8.44-rc
nupkg](https://nuget.info/packages/Microsoft.DataApiBuilder/0.8.44-rc)
nupkg needs to be fixed

## What is this change?

- To fix the NuGet generated in the `main` branch, `Product` and `Core`
modules needs to be updated. `Product` module was introduced later and
`0.8.*` NuGets do not have the Product module. So, the fix is broken
into two PRs.
- This PR adds changes only to the `Core` module. After merging to
`main`, this PR can be ported over to `release/0.8` branch.
- [PR #1657 ](#1657) adds
the changes to `Product` module.
 
- Sets `EmbedUntrackedSources` and `ContinuousIntegrationBuild` to
`true`


## How was this tested?

- [x] Manual Tests
By applying the change on top of the `release/0.8` branch, the health of
the NuGet generated was validated

![image](https://github.com/Azure/data-api-builder/assets/11196553/551713f7-1f96-46e5-a310-91bccfeab87c)

---------

Co-authored-by: Aniruddh Munde <[email protected]>
Aniruddh25 added a commit that referenced this pull request Aug 26, 2023
…for Core module… (#1660)

Cherry-Picks (#1656) to release/0.8 branch

**Original Description:**

## Why make this change?

-  Closes #1655 
- Health of [0.8.44-rc
nupkg](https://nuget.info/packages/Microsoft.DataApiBuilder/0.8.44-rc)
nupkg needs to be fixed

## What is this change?

- To fix the NuGet generated in the `main` branch, `Product` and `Core`
modules needs to be updated. `Product` module was introduced later and
`0.8.*` NuGets do not have the Product module. So, the fix is broken
into two PRs.
- This PR adds changes only to the `Core` module. After merging to
`main`, this PR can be ported over to `release/0.8` branch.
- [PR #1657 ](#1657) adds
the changes to `Product` module.
 
- Sets `EmbedUntrackedSources` and `ContinuousIntegrationBuild` to
`true`


## How was this tested?

- [x] Manual Tests By applying the change on top of the `release/0.8`
branch, the health of the NuGet generated was validated


![image](https://github.com/Azure/data-api-builder/assets/11196553/551713f7-1f96-46e5-a310-91bccfeab87c)

---------

Co-authored-by: Shyam Sundar J <[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.

Fix NuGet health of the latest Nupkg

3 participants