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

Build/Publish base on GitHub Actions #142

Merged
merged 47 commits into from
Nov 15, 2024
Merged

Conversation

tomaszgolebiowski
Copy link
Collaborator

@tomaszgolebiowski tomaszgolebiowski commented Nov 12, 2024

CLOSE https://linear.app/sourcegraph/issue/CODY-4276/improve-workflow-to-build-vs-based-on-cody-commit

  • Migration from build.cake to GitHub Actions.
  • Release automation (simply add the appropriate tag with the version number ex. preview-v0.1.3)
  • Automatic setting of version in source code files
  • Preview version available as a private feed (https://sourcegraph.github.io/cody-vs/feed.xml)
  • Production version automatically published to VS Marketplace
  • Nightly builds automatically fetch the latest tagged version of the agent and use it for testing.
  • The script for building the agent now uses PowerShell.

Copy link

github-actions bot commented Nov 12, 2024

Test Results

15 tests  +3   15 ✅ +3   17m 27s ⏱️ + 4m 8s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ccc1f0a. ± Comparison against base commit e8d1d18.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@PiotrKarczmarz PiotrKarczmarz left a comment

Choose a reason for hiding this comment

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

Let's remove (compiled: ...) from the first line of the log (Cody output window), because it doesn't return valid results anymore.

image

.github/workflows/build.yml Outdated Show resolved Hide resolved
.github/workflows/nightly.yml Outdated Show resolved Hide resolved
.github/workflows/publish-preview.yml Outdated Show resolved Hide resolved
.github/workflows/publish-release.yml Outdated Show resolved Hide resolved
.github/actions/create-vsix-feed/action.yml Outdated Show resolved Hide resolved
.github/workflows/publish-preview.yml Outdated Show resolved Hide resolved
@PiotrKarczmarz
Copy link
Collaborator

The preview release feed works nicely!

image

and after switching to PowerShell scripts there is a much more verbose output, when running runBuildAgent.ps1. Especially for git step:

image

Also, running runBuildAgent.ps1 is about 4 seconds faster than dotnet cake 🚀

@tomaszgolebiowski tomaszgolebiowski merged commit cf68af2 into main Nov 15, 2024
4 checks passed
@tomaszgolebiowski tomaszgolebiowski deleted the tg/github-actions branch November 15, 2024 12:13
tomaszgolebiowski added a commit that referenced this pull request Dec 11, 2024
CLOSE
https://linear.app/sourcegraph/issue/CODY-4276/improve-workflow-to-build-vs-based-on-cody-commit

- Migration from build.cake to GitHub Actions.
- Release automation (simply add the appropriate tag with the version
number ex. preview-v0.1.3)
- Automatic setting of version in source code files
- Preview version available as a private feed
(https://sourcegraph.github.io/cody-vs/feed.xml)
- Production version automatically published to VS Marketplace
- Nightly builds automatically fetch the latest tagged version of the
agent and use it for testing.
- The script for building the agent now uses PowerShell.

---------

Co-authored-by: Tomasz Gołębiowski <tgolebiowski@virtuslab.com>
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