Repository navigation
Add a script for exporting VMR as a source archive - #15226
Conversation
|
cc @omajid |
MichaelSimons
left a comment
There was a problem hiding this comment.
Thoughts on adding CI coverage for this? Since RedHat is taking a dependency on this, it feels that we should ensure it doesn't regress. We could unit test it or possibly use it in one of the build legs. Alternatively I have thought at times we should have a separate pipeline that is run less frequently to cover things like this that don't need to run on every commit.
|
FYI in my environment the execution bit is preserved and there is no need for |
|
I am getting the following error during the installer build: |
Co-authored-by: Michael Simons <[email protected]>
I think I just didn't push the same files into my VMR fork as in this PR. I have the flag now when running this again.
Ah, that must be because I had the tar unpacked under |
I agree it would be nice to have coverage of some sort. I'd ideally like to also get their other acceptance tests (like scans for binaries) to stay compliant in this regard as well. |
|
@MichaelSimons I downloaded a 7.0 tarball and it has no Is this flow from @omajid something new we weren't doing before? @omajid weren't you putting the tarball in a new git repo before ingestion or some other step that is now not expected with the VMR? Looking at what the build does it must either be new or we had to be inside of a git repo before. |
|
For 7.0 (and earlier), the "official" Fedora/RHEL build systems extract the tarball to a random location and build it. No git repository (or git metadata) is involved, unless the tarball already contains it. For local development (eg, me or other Fedora/RHEL dev), the 7.0 (and earlier) tarball is generally extracted to inside an unrelated repository before being built. If there's git metadata in that unrelated repo, it's bogus. In both cases (official build or local dev), git metadata that's not part of the tarball is either bogus or not available, so it can't be used safely. For 7.0 and earlier, we would use the dotnet/installer repo to build a tarball, instead of using |
|
@premun - FYI, I took a quick look at a binlog from 7.0 CI and the git command gets skipped because of the condition. In the tarball produced by these changes it is not. |
|
Thanks @MichaelSimons, I was trying to call git commands in the tarball and they were failing as well so I was wondering how come it works there. However, I just pulled I think the working directory is the cloned installer there though so that's why this works there. |
Yes, I had seen the same thing. |
|
@mmitche you were right, the |
MichaelSimons
left a comment
There was a problem hiding this comment.
I am fine with merging this but I would like to see a follow up issue logged to add coverage in CI. The issues encountered in the initial development could happen at any time and we don't want to regress. As I mentioned earlier, I don't think this CI leg should be run on every commit given our resource constraints in CI. Running weekly seems more appropriate.
Created dotnet/arcade#12193 |
|
I will have to check tomorrow, the build failed again for some reason with the latest commit:
|
I ran everything again clean and it worked fine. @MichaelSimons I see the Darwin leg failing in all PRs. Is this a known issue? |
|
@marcpopMSFT can you help me merge this? |
Yes it is. I will merge it. |

Steps I used to verify this
Resolves dotnet/source-build#3112