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

appveyor.yml is ignored #545

Closed
techtonik opened this issue Dec 10, 2015 · 30 comments
Closed

appveyor.yml is ignored #545

techtonik opened this issue Dec 10, 2015 · 30 comments

Comments

@techtonik
Copy link

This project - https://ci.appveyor.com/project/techtonik/pyside2-setup/build/1.0.6 - is not configured to ignore appveyor.yml, but it is ignored. The file is present at: https://github.com/techtonik/pyside2-setup/blob/master/appveyor.yml and should show python --version. UI scripts don't have this command.

@FeodorFitsner
Copy link
Member

Looks like the project is added as generic (custom) Git repo, not GitHub. appveyor.yml is not supported for custom Git repos.

@techtonik
Copy link
Author

Yes. I added it manually, because GitHub permissions are too wide. I'd prefer AppVeyor to ask permission only to one specific repository where the hook is needed.

@PureKrome
Copy link

appveyor.yml is not supported for custom Git repos

@FeodorFitsner really? so if i have a bitbucket repo, I can't use a .yml file at all?

@FeodorFitsner
Copy link
Member

BitBucket is supported for both git and mercurial repos.

@PureKrome
Copy link

So what is custom Git repo's ?

@FeodorFitsner
Copy link
Member

Anything not GitHub, BitBucket, VSO or Kiln.

-Feodor

On Thu, Jan 7, 2016 at 7:21 PM -0800, "Pure Krome" notifications@github.com wrote:

So what is custom Git repo's ?


Reply to this email directly or view it on GitHub.

@techtonik
Copy link
Author

Yea. A pity. =)

@PureKrome
Copy link

Again, I got bitten by this today :( I added a simple 'git' project (not github) and the appveyor.yml file was getting ignored :(

No chance to add this support in the future?

@FeodorFitsner
Copy link
Member

The requirement there is to be able to fetch a single file without (before) cloning the entire repo.

@techtonik
Copy link
Author

@FeodorFitsner
Copy link
Member

Which of those methods specifically?

@techtonik
Copy link
Author

Both git clone --no-checkout and git archive.

I also don't see why it is impossible to start with obligatory clone --depth 1 and make Appveyor extend it if more features are needed.

@FeodorFitsner
Copy link
Member

Wherever I tried git archive it had never worked for me.

Two concerns with git clone --no-checkout --depth 1:

  1. It still could take a lot of time to fetch large repos even with depth 1.
  2. Security. We never fetch repository contents on shared servers. Right now both public and private repos are cloned during the build only to isolated build worker VM. However, appveyor.yml must be "known" before the build starts.

@techtonik
Copy link
Author

Could be a problem with architecture. Is it possible to do this:

  1. fetch source first to some storage location that is shared with all containers with copy-on-write basis
  2. analyse appveyor.yml and figure out how many and which containers are needed
  3. mount checkout as copy-on-write and proceed with builds

@stephanmg
Copy link

stephanmg commented Sep 9, 2016

@FeodorFitsner I logged in with my Github Account and linked it.
Creating a Project ignroes my appveyor.yml.

Why is that?

Oh I see, my fault, sorry.
If the appveyor.xml is empty then it fails with the same message.

@PureKrome
Copy link

PureKrome commented Sep 10, 2016

@stephanmg also, the file should be called appveyor.yml (not xml) and it's case sensitive. Yep, sensitive.

@stephanmg
Copy link

@PureKrome sorry. I meant .yml, yet I excluded my branch in Settings accidently. AppVeyor works!

@PureKrome
Copy link

@kevinoid
Copy link

kevinoid commented Oct 3, 2016

@FeodorFitsner We just ran into this issue while setting up an AppVeyor project for CCAN. Would it be possible to allow users to specify a custom appveyor.yml URL in this case?

If the custom git repository uses gitweb or another web interface, as we do, the setup should be simple for users and avoid the issues you mentioned for git clone and git archive. Thoughts?

@FeodorFitsner
Copy link
Member

Can you give me an example of such URL please?

@kevinoid
Copy link

kevinoid commented Oct 3, 2016

@FeodorFitsner Sure. For CCAN you could fetch the current appveyor.yml on the master branch from https://git.ozlabs.org/?p=ccan;a=blob_plain;f=appveyor.yml;hb=HEAD

@PureKrome
Copy link

@kevinoid These are all the same git commands right? it's just the endpoint that differs, right? Which is why you are saying: "If I can supply the endpoint, then use that with the normal git commands".

Yes?

@kevinoid
Copy link

kevinoid commented Oct 3, 2016

@PureKrome I don't think so. Sorry for the confusion. Let me try to clarify.

I'm saying that if the reason appveyor.yml is ignored is because using available git commands are unacceptable, then a potential solution would be to allow users to provide an alternative URL (presumably limited to HTTP and/or FTP) through which appveyor.yml could be fetched directly without using git.

@IlyaFinkelshteyn
Copy link
Contributor

Thank you for idea! Please watch this issue.

--ilya.

@kevinoid
Copy link

kevinoid commented Oct 3, 2016

Thanks @IlyaFinkelshteyn! Will do.

@PureKrome
Copy link

Subscribed :) ta @IlyaFinkelshteyn

Also @IlyaFinkelshteyn - you should get the AppVeyor Systems Inc. badge beside your name, in here so we know you're part of the team :)

@techtonik
Copy link
Author

I also need a warning that appveyor.yml is ignored - got hit by it once more.

@IlyaFinkelshteyn
Copy link
Contributor

Yeah we already have this issue added #990

@IlyaFinkelshteyn
Copy link
Contributor

@PureKrome Thank you, we set it, sorry I am pretty new to GitHub world :)

@M-Yankov
Copy link

M-Yankov commented May 25, 2020

Looks like the project is added as generic (custom) Git repo, not GitHub. appveyor.yml is not supported for custom Git repos.

So what is custom Git repo's ?

Anything not GitHub, BitBucket, VSO or Kiln.

Today I hit this issue, it was working nice in 2016, but today I've updated my code, pushed and build failed. After looking carefully it seems the appveyor.yml is not working. I've managed to update Custom configuration .yml file name in project settings as #1089. And it's working.

But my worries are that: it was working, now it's not working. My code was always in GitHub (I cannot remember whether I've created the repo from local git CMD or GitHub website).
How to determine whether my repo is custom Git repo ?

Builds history: https://ci.appveyor.com/project/M-Yankov/swapi-csharp/history
Repo: https://github.com/M-Yankov/SWapi-CSharp

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

No branches or pull requests

7 participants