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

CPack artifacts file name format compliance #4811

Merged
merged 6 commits into from
Mar 13, 2024

Conversation

dudoslav
Copy link
Collaborator

@dudoslav dudoslav commented Mar 13, 2024

This PR fixes these concerns with release artifact filenames:

  1. Windows having amd64 in name instead of x86_64
  2. Package name missing full tag as name
  3. Package name missing commit hash

Number 1. is fixed by checking CMake variabe CMAKE_SYSTEM_PROCESSOR and if its set to AMD64 the packaging logic uses x86_64 instead.

Number 2. and 3. are fixed by packaging process requiring TILEDB_PACKAGE_VERSION environment variable to be present when calling packaging commands (make package or cpack ... or similar)

An example pipeline in my fork: https://github.com/dudoslav/TileDB/actions/runs/8266657611
An example release t14 in my fork: https://github.com/dudoslav/TileDB/releases/tag/t14
(Please wait for them to finish)


TYPE: NO_HISTORY
DESC: Fix CPack packaging issues with file name format

@teo-tsirpanis
Copy link
Member

Let's wait for the release in your fork to finish.

@dudoslav
Copy link
Collaborator Author

Let's wait for the release in your fork to finish.

Done

@dudoslav
Copy link
Collaborator Author

I just noticed that releases.csv are now broken so let me fix that one as well

Copy link
Member

@teo-tsirpanis teo-tsirpanis left a comment

Choose a reason for hiding this comment

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

Successfully ran the NuGet package and bindings generation scripts in the C# API, after some minimal changes to point to your fork.

@dudoslav
Copy link
Collaborator Author

I just noticed that releases.csv are now broken so let me fix that one as well

Should be fixed, new workflow and release:

https://github.com/dudoslav/TileDB/actions/runs/8267589002
https://github.com/dudoslav/TileDB/releases/tag/t15

Copy link
Contributor

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

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

OK I see:

tiledb-macos-x86_64-2.19.2-dc780d2.tar.gz https://github.com/TileDB-Inc/TileDB/releases/tag/2.19.2
tiledb-macos-x86_64-2.21.0.tar.gz         https://github.com/TileDB-Inc/TileDB/releases/tag/2.21.0-rc0
tiledb-macos-x86_64-t14-070c5de.tar.gz    https://github.com/dudoslav/TileDB/releases/tag/t14

I think this is good! Thanks @dudoslav ! 🙂

@dudoslav
Copy link
Collaborator Author

I just noticed that releases.csv are now broken so let me fix that one as well

Should be fixed, new workflow and release:

https://github.com/dudoslav/TileDB/actions/runs/8267589002 https://github.com/dudoslav/TileDB/releases/tag/t15

Last releases seems to have correct releases.csv:

(base) taco:~ dudoslav$ cat Downloads/releases\(9\).csv
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: Downloads/releases(9).csv
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ platform,url,sha256
   2   │ LINUX-X86_64-NOAVX2,https://github.com/dudoslav/TileDB/releases/download/t15/tiledb-linux-x86_64-noavx2-t15-855505d.tar.gz,395d209f554ebe687edc23c4ed47cb16f6974d36bd2ab496843455279871b61f
   3   │ LINUX-X86_64,https://github.com/dudoslav/TileDB/releases/download/t15/tiledb-linux-x86_64-t15-855505d.tar.gz,b66d780fb66000ff7d3c5527a8438964731d4cd330d00f7571d52fabab5098bc
   4   │ MACOS-ARM64,https://github.com/dudoslav/TileDB/releases/download/t15/tiledb-macos-arm64-t15-855505d.tar.gz,8fda7c5c25fecffda5a40bf62bdbd373aef3b7f3399013025b76bc86fa14eb67
   5   │ MACOS-X86_64,https://github.com/dudoslav/TileDB/releases/download/t15/tiledb-macos-x86_64-t15-855505d.tar.gz,89516f1273bb0fb31a13b22581d7f8a949ae786d8e85ff47a39a9ed355267baf
   6   │ WINDOWS-X86_64,https://github.com/dudoslav/TileDB/releases/download/t15/tiledb-windows-x86_64-t15-855505d.zip,b48d166a11c3558de9c18a46095983803277e5bb384d476c28f45d5e21a957c1
   7   │ source,https://github.com/dudoslav/TileDB/releases/download/t15/tiledb-source-t15-855505d.tar.gz,165364008776f34dd34a6f8d8e39f114d66ff7661343205b18672981f69fb20c
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
(base) taco:~ dudoslav$

@KiterLuc KiterLuc merged commit e6e1808 into TileDB-Inc:dev Mar 13, 2024
53 of 54 checks passed
KiterLuc pushed a commit that referenced this pull request Mar 13, 2024
This PR fixes these concerns with release artifact filenames:

1. Windows having `amd64` in name instead of `x86_64`
2. Package name missing full tag as name
3. Package name missing commit hash

Number 1. is fixed by checking CMake variabe CMAKE_SYSTEM_PROCESSOR and
if its set to `AMD64` the packaging logic uses `x86_64` instead.

Number 2. and 3. are fixed by packaging process requiring
`TILEDB_PACKAGE_VERSION` environment variable to be present when calling
packaging commands (`make package` or `cpack ...` or similar)

An example pipeline in my fork:
https://github.com/dudoslav/TileDB/actions/runs/8266657611
An example release `t14` in my fork:
https://github.com/dudoslav/TileDB/releases/tag/t14
(Please wait for them to finish)

---
TYPE: NO_HISTORY
DESC: Fix CPack packaging issues with file name format

(cherry picked from commit e6e1808)
KiterLuc added a commit that referenced this pull request Mar 13, 2024
…4811) (#4814)

Backport
e6e1808
from #4811.

---
TYPE: NO_HISTORY
DESC: Fix CPack packaging issues with file name format.

Co-authored-by: Dušan Baran <[email protected]>
robertbindar pushed a commit that referenced this pull request Mar 22, 2024
This PR fixes these concerns with release artifact filenames:

1. Windows having `amd64` in name instead of `x86_64`
2. Package name missing full tag as name
3. Package name missing commit hash

Number 1. is fixed by checking CMake variabe CMAKE_SYSTEM_PROCESSOR and
if its set to `AMD64` the packaging logic uses `x86_64` instead.

Number 2. and 3. are fixed by packaging process requiring
`TILEDB_PACKAGE_VERSION` environment variable to be present when calling
packaging commands (`make package` or `cpack ...` or similar)

An example pipeline in my fork:
https://github.com/dudoslav/TileDB/actions/runs/8266657611
An example release `t14` in my fork:
https://github.com/dudoslav/TileDB/releases/tag/t14
(Please wait for them to finish)

---
TYPE: NO_HISTORY
DESC: Fix CPack packaging issues with file name format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants